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