Skip to content

Commit

Permalink
Fix default branch reference in GitHub Actions definition (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
japborst authored Oct 5, 2022
1 parent c4e476a commit f4e191e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and verify
on:
pull_request:
push:
branches: [$default-branch]
branches: [ master ]
permissions:
contents: read
jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update `error-prone.picnic.tech` website content
on:
pull_request:
push:
branches: [$default-branch]
branches: [ master ]
permissions:
contents: read
id-token: write
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Upload website as artifact
uses: actions/[email protected]
deploy:
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
if: github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-22.04
environment:
Expand Down

0 comments on commit f4e191e

Please sign in to comment.