Skip to content

Commit

Permalink
ci: 🐛 more permissions for release please.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoido committed Dec 10, 2023
1 parent c6f0f29 commit 04182f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,3 @@ jobs:
uses: ./.github/workflows/go-test.yaml

secrets: inherit

checks-passed:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: "Checks Passed"
runs-on: ubuntu-latest
needs: [lint, build, test]
steps:
- run: echo "All required passed!" >> $GITHUB_STEP_SUMMARY
8 changes: 3 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ on:
concurrency:
group: release-please-${{ github.ref }}

permissions:
contents: write

jobs:
release-please:
name: Release Please
runs-on: ubuntu-latest

if: github.event.workflow_run.conclusion == 'success'

permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v3
Expand All @@ -29,8 +29,6 @@ jobs:
name: Fail Release
runs-on: ubuntu-latest

permissions: {}

if: github.event.workflow_run.conclusion == 'failure'

steps:
Expand Down

0 comments on commit 04182f9

Please sign in to comment.