Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update workflow to allow to test workflow changes #160

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: "Deploy Preview"

on:
push:
branches-ignore:
- main
pull_request:
# allow repository maintainers to modify and test workflow
paths:
- ".github/workflows/deploy-preview.yaml"
pull_request_target:
# enable runs for this workflow when labeled as safe only
# prevent execution when the workflow itself is modified from a fork
Expand All @@ -21,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
if: |
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe'))
|| (github.event_name == 'push' && github.event.push.repository.full_name == github.repository)
|| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down