Skip to content

Commit

Permalink
Change workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Nov 30, 2023
1 parent b154015 commit 0a73491
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Test

on:
push:
branches:
- master
pull_request_target:
types: [labeled, opened, reopened, synchronize]

Expand All @@ -23,7 +26,8 @@ jobs:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
persist-credentials: false
- name: permissions
- name: permissions PR
if: github.event_name == 'pull_request_target'
run: |
python3 -uS .github/workflows/script.py \
--repo-id ${{ github.event.repository.id }} \
Expand All @@ -36,6 +40,9 @@ jobs:
# these can contain special characters
ARG_USERNAME: ${{ github.event.pull_request.user.login }}
ARG_LABEL_NAMES: ${{ toJSON(github.event.pull_request.labels.*.name) }}
- name: permissions
if: github.event_name == 'push'
run: true

test:
needs: check-permissions
Expand Down

0 comments on commit 0a73491

Please sign in to comment.