We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f94a4 commit d2f3337Copy full SHA for d2f3337
.github/workflows/ci.yml
@@ -2,6 +2,10 @@ name: CI
2
3
on: ['push', 'pull_request']
4
5
+permissions:
6
+ contents: read
7
+ packages: write
8
+
9
jobs:
10
tests:
11
runs-on: ubuntu-latest
@@ -47,12 +51,13 @@ jobs:
47
51
run: vendor/bin/phpunit
48
52
49
53
docker:
54
+ # Only push Docker image for direct pushes to master branch
55
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
50
56
57
needs: tests
- if: github.event_name == 'push' || github.event_name == 'pull_request'
58
steps:
59
- name: Checkout code
- uses: actions/checkout@v2
60
+ uses: actions/checkout@v4
61
- name: Log in to the Container registry
62
uses: docker/login-action@v3
63
with:
0 commit comments