mirror of
https://github.com/bitwarden/self-host.git
synced 2026-06-28 14:25:45 +00:00
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>
This commit is contained in:
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user