From 19cb6aa7f09469437d6be04f12a5ede6db22eefd Mon Sep 17 00:00:00 2001 From: Bart Feenstra Date: Tue, 22 Jun 2021 00:35:58 +0100 Subject: [PATCH] Fix a bug where tagging development releases failed if a previous release existed already. --- .github/workflows/tag-dev.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/tag-dev.yml b/.github/workflows/tag-dev.yml index 6a8134597..7c92749b8 100644 --- a/.github/workflows/tag-dev.yml +++ b/.github/workflows/tag-dev.yml @@ -16,8 +16,5 @@ jobs: - name: Check out the source code uses: actions/checkout@v2 - - name: Tag the development release - run: git tag "$(git rev-parse --abbrev-ref HEAD)-dev" - - name: Push the tag - run: git push --force origin "$(git rev-parse --abbrev-ref HEAD)-dev" + run: 'curl -X POST -H "Authorization: token ${{ secrets.PAT }}" -d "{\"ref\": \"refs/tags/$(git rev-parse --abbrev-ref HEAD)-dev\",\"sha\": \"$(git rev-parse HEAD)\"}" https://api.github.com/repos/bartfeenstra/betty/git/refs'