Browse Source

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>
pull/390/head v2025.7.0
Amy Galles 5 months ago committed by GitHub
parent
commit
03bedb8dbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      .github/workflows/release.yml

4
.github/workflows/release.yml

@ -76,6 +76,8 @@ jobs: @@ -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: @@ -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

Loading…
Cancel
Save