From a621a353ec3c899ed6cde39aa0c9afa8456c1364 Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Thu, 13 Jan 2022 09:23:55 -0500 Subject: [PATCH] Change revbot to date tags instead of revisions Signed-off-by: Kyle Harding --- .github/workflows/revbot.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/revbot.yml b/.github/workflows/revbot.yml index fce37c7..3447f5c 100644 --- a/.github/workflows/revbot.yml +++ b/.github/workflows/revbot.yml @@ -6,10 +6,8 @@ on: - "main" jobs: - revbot: runs-on: ubuntu-20.04 - if: github.event_name != 'pull_request' steps: - uses: actions/checkout@v2 @@ -17,12 +15,7 @@ jobs: fetch-depth: 0 - id: revbot - run: | - for i in {0..100} ; do \ - new_tag="v$(head -n1 VERSION)-r${i}" ; \ - git show-ref --tags ${new_tag} --quiet || break ; \ - done - echo "::set-output name=new_tag::${new_tag}" + run: echo "::set-output name=new_tag::v$(head -n1 VERSION)-$(date +%Y%m%d)" # REVBOT_TOKEN requires 'repo' access. # Don't use GITHUB_TOKEN if you want this commit to trigger other workflows.