Skip to content

Commit

Permalink
add condition
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam committed Aug 27, 2024
1 parent 0e957fb commit f4d390c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/gha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,20 @@ jobs:
run: |
echo "hello world"
echo "RUNNER=arc-runners-default-stg" >> $GITHUB_OUTPUT
# Run merge queues on persistent runners
if [[ $GITHUB_REF_NAME == *"gh-readonly-queue"* ]]; then
echo "RUNNER=ubuntu-latest" >> $GITHUB_OUTPUT
else
echo "RUNNER=arc-runners-default-stg" >> $GITHUB_OUTPUT
fi
env
test-job:
needs: [set-runner]
runs-on: ${{ needs.set-runner.outputs.RUNNER }}
steps:
- uses: actions/checkout@v4
- run: sleep 60
- run: sleep 10
test-job2:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit f4d390c

Please sign in to comment.