Skip to content

Commit

Permalink
Make autotriage only run in pull requests
Browse files Browse the repository at this point in the history
This should prevent accidental triggering when someone fetches
a commit containing a change to these files and pushes it to their
fork.

Also moving a pwd envvar as its current location may cause problems in
some forks.

Signed-off-by: Adam Farley <[email protected]>
  • Loading branch information
adamfarley committed Nov 30, 2023
1 parent 21af64b commit f3e4f44
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-autotriage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ name: "Build Autotriage"
on:
schedule:
- cron: '0 0 * * MON'
push:
pull_request:
branches: [master]
paths:
- '**build-autotriage.yml'
- '**build_autotriage.sh'
- '**autotriage_regexes.sh'

env:
TRIAGE_SCRIPT: "${PWD}/tooling/build_autotriage/build_autotriage.sh"
TRIAGE_SCRIPT: "tooling/build_autotriage/build_autotriage.sh"

jobs:
Label:
Expand All @@ -22,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: "Run Build Auto Triage"
run: bash "${TRIAGE_SCRIPT}" jdk8u jdk11u jdk17u jdk21u jdk22head
run: bash "${PWD}/${TRIAGE_SCRIPT}" jdk8u jdk11u jdk17u jdk21u jdk22head

- name: Create Issue From File
env:
Expand Down

0 comments on commit f3e4f44

Please sign in to comment.