Skip to content

Commit

Permalink
rm mq-gha (#4)
Browse files Browse the repository at this point in the history
* rm mq-gha

* fix var

* add outputs

* reduce time

* add condition

* rm env
  • Loading branch information
alvicsam authored Aug 27, 2024
1 parent af8f1f6 commit b6694fc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gha-pass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sleep 180
- run: sleep 30
25 changes: 22 additions & 3 deletions .github/workflows/gha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled]
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -14,13 +15,31 @@ concurrency:
permissions: {}

jobs:
set-runner:
runs-on: ubuntu-latest
outputs:
RUNNER: ${{ steps.set-runner.outputs.RUNNER }}
steps:
- name: set runner
id: set-runner
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
test-job:
runs-on: arc-runners-default-stg
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:
- uses: actions/checkout@v4
- run: sleep 120
- run: sleep 10
22 changes: 0 additions & 22 deletions .github/workflows/mq-gha.yml

This file was deleted.

0 comments on commit b6694fc

Please sign in to comment.