From d497ac41415ee6f3f4dae787bc723f58ef817716 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:38:49 +1200 Subject: [PATCH 1/3] FIX Give necessary permissions to dispatch patch release (#14) --- .github/workflows/action-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/action-ci.yml b/.github/workflows/action-ci.yml index eb73760..a620ae4 100644 --- a/.github/workflows/action-ci.yml +++ b/.github/workflows/action-ci.yml @@ -71,6 +71,8 @@ jobs: runs-on: ubuntu-latest needs: ci if: ${{ github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} + permissions: + actions: write env: GITHUB_REPOSITORY: ${{ github.repository }} BRANCH: ${{ needs.ci.outputs.branch }} From 116808ab01389c028eecebe7b069070eff707a0f Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:45:33 +1200 Subject: [PATCH 2/3] FIX Don't pass input that doesn't exist to workflow (#16) --- .github/workflows/action-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/action-ci.yml b/.github/workflows/action-ci.yml index a620ae4..44cf159 100644 --- a/.github/workflows/action-ci.yml +++ b/.github/workflows/action-ci.yml @@ -89,7 +89,7 @@ jobs: -H "Authorization: Bearer ${{ github.token }}"\ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/$GITHUB_REPOSITORY/actions/workflows/tag-patch-release.yml/dispatches \ - -d "{\"ref\":\"$BRANCH\",\"inputs\":{\"latest_local_sha\":\"${{ needs.ci.outputs.latest_local_sha }}\",\"dispatch_gha_autotag\":${{ needs.ci.outputs.has_auto_tag }}}}" + -d "{\"ref\":\"$BRANCH\",\"inputs\":{\"latest_local_sha\":\"${{ needs.ci.outputs.latest_local_sha }}\"}}" ) if [[ $RESP_CODE != "204" ]]; then echo "Failed to dispatch workflow - HTTP response code was $RESP_CODE" From 5445beb9d5771fa1e165a4e63e21970725e94d43 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:46:55 +1200 Subject: [PATCH 3/3] MNT Run module-standardiser (#15) --- .github/workflows/tag-patch-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tag-patch-release.yml b/.github/workflows/tag-patch-release.yml index dc2db2b..0950def 100644 --- a/.github/workflows/tag-patch-release.yml +++ b/.github/workflows/tag-patch-release.yml @@ -24,3 +24,4 @@ jobs: uses: silverstripe/gha-tag-release@v2 with: latest_local_sha: ${{ inputs.latest_local_sha }} + dispatch_gha_autotag: true