Fix default branch reference in GitHub Actions definition (#278)

This commit is contained in:
Jelmer Borst
2022-10-05 12:48:07 +02:00
committed by GitHub
parent c4e476a731
commit f4e191e33b
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ name: Build and verify
on:
pull_request:
push:
branches: [$default-branch]
branches: [ master ]
permissions:
contents: read
jobs:

View File

@@ -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
@@ -33,7 +33,7 @@ jobs:
- name: Upload website as artifact
uses: actions/upload-pages-artifact@v1.0.4
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: