Skip to content

Commit

Permalink
Fix github actions for pull requests (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-eschwartz committed Apr 25, 2024
1 parent df0e1ab commit 3302452
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- '*'
pull_request:
# Enabling this has some security implications. For now we'll leave it off.
#pull_request_target:
# types: [labeled]
schedule:
- cron: '42 06 * * sat' # Run every Saturday at 06:42 UTC

Expand Down Expand Up @@ -42,7 +45,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'schedule' }}
push: ${{ github.event_name == 'push' || ( github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'push to docker'))}}
build-args: |
CFLAGS=
NCPU=4
Expand Down

0 comments on commit 3302452

Please sign in to comment.