From 50bb43eb794a395268edbf763fd8f5159ca072bb Mon Sep 17 00:00:00 2001 From: MaxJa4 <74194322+MaxJa4@users.noreply.github.com> Date: Tue, 14 Nov 2023 21:07:31 +0100 Subject: [PATCH 1/4] Remove version tagging --- .github/workflows/build.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 819596c7..395ce26d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,15 +38,6 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Bump version and push tag - # only run on push to main - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - id: tag - uses: mathieudutour/github-tag-action@v6.1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - release_branches: main - - name: Get commit hash id: hash run: echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT From 087e3cac146c9a29d1a9665e84edd0bc13a7d85b Mon Sep 17 00:00:00 2001 From: MaxJa4 <74194322+MaxJa4@users.noreply.github.com> Date: Wed, 15 Nov 2023 19:17:44 +0100 Subject: [PATCH 2/4] TestPR for GH actions --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 395ce26d..0d1ad409 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: outputs: version: ${{ steps.build.version.outputs.version }} permissions: - contents: read + contents: write packages: write steps: @@ -38,6 +38,15 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Bump version and push tag + # only run on push to main + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + id: tag + uses: mathieudutour/github-tag-action@v6.1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + release_branches: main + - name: Get commit hash id: hash run: echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT From 89cd49131419d17a74b7c4ce7f76c36f94706503 Mon Sep 17 00:00:00 2001 From: MaxJa4 <74194322+MaxJa4@users.noreply.github.com> Date: Wed, 15 Nov 2023 19:22:03 +0100 Subject: [PATCH 3/4] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d1ad409..3be53179 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: - name: Bump version and push tag # only run on push to main - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.event_name == 'push' # && github.ref == 'refs/heads/main' id: tag uses: mathieudutour/github-tag-action@v6.1 with: From 7a24e4e4ddf25ec250ceffa2bd26e7454c29fa5f Mon Sep 17 00:00:00 2001 From: MaxJa4 <74194322+MaxJa4@users.noreply.github.com> Date: Wed, 15 Nov 2023 19:24:08 +0100 Subject: [PATCH 4/4] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3be53179..0d1ad409 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: - name: Bump version and push tag # only run on push to main - if: github.event_name == 'push' # && github.ref == 'refs/heads/main' + if: github.event_name == 'push' && github.ref == 'refs/heads/main' id: tag uses: mathieudutour/github-tag-action@v6.1 with: