From 03bedb8dbc84daf812e8c4122fb7252f0b4c2492 Mon Sep 17 00:00:00 2001 From: Amy Galles <9685081+AmyLGalles@users.noreply.github.com> Date: Thu, 10 Jul 2025 12:27:52 -0700 Subject: [PATCH] Fix permissions for self-host build workflow (#385) * give write permissions to github release step * allow running from test branch * allow running from test branch * reverse troubleshooting steps * allow running from test branch * Update .github/workflows/release.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 56f097f..ee2f617 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,6 +76,8 @@ jobs: name: Create GitHub Release runs-on: ubuntu-24.04 needs: setup + permissions: + contents: write steps: - name: Checkout repo uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -87,7 +89,7 @@ jobs: env: _LATEST_SELF_HOST_VERSION: ${{ needs.setup.outputs._LATEST_SELF_HOST_VERSION }} run: | - git diff --unified=0 $_LATEST_SELF_HOST_VERSION main -- version.json >> diff.txt + git diff --unified=0 $_LATEST_SELF_HOST_VERSION $GITHUB_REF_NAME -- version.json >> diff.txt if grep -q "webVersion" diff.txt; then echo "WEB_VERSION_CHANGED=true" >> $GITHUB_OUTPUT