Skip to content

Commit d2f3337

Browse files
Workflow fix (limosa-io#123)
1 parent f6f94a4 commit d2f3337

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: CI
22

33
on: ['push', 'pull_request']
44

5+
permissions:
6+
contents: read
7+
packages: write
8+
59
jobs:
610
tests:
711
runs-on: ubuntu-latest
@@ -47,12 +51,13 @@ jobs:
4751
run: vendor/bin/phpunit
4852

4953
docker:
54+
# Only push Docker image for direct pushes to master branch
55+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
5056
runs-on: ubuntu-latest
5157
needs: tests
52-
if: github.event_name == 'push' || github.event_name == 'pull_request'
5358
steps:
5459
- name: Checkout code
55-
uses: actions/checkout@v2
60+
uses: actions/checkout@v4
5661
- name: Log in to the Container registry
5762
uses: docker/login-action@v3
5863
with:

0 commit comments

Comments
 (0)