Skip to content

Commit

Permalink
env and runner var testing 09
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdermg committed May 27, 2024
1 parent de31c11 commit 73c3439
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/self-host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@ on:
- dev

jobs:
Explore-GitHub-Actions:
runs-on: ${{ secrets.RUNNER }}
environment:
name: ${{ github.ref == 'refs/heads/main' && 'prod' || 'dev' }}
Explore-GitHub-Actions-Prod:
if: github.ref == 'refs/heads/main'
runs-on: arc-runner-set-01
steps:
- name: Debug var RUNNER
run: echo "The value of var.RUNNER is ${{ secret.RUNNER }}"
run: echo "The value of var.RUNNER is ${{ secrets.RUNNER_PROD }}"
- name: confirm self hosted runners
run: echo "🎉 This job uses runner scale set runners!"

Explore-GitHub-Actions-Dev:
if: github.ref == 'refs/heads/dev'
runs-on: arc-runner-set-02
steps:
- name: Debug var RUNNER
run: echo "The value of var.RUNNER is ${{ secrets.RUNNER_DEV }}"
- name: confirm self hosted runners
run: echo "🎉 This job uses runner scale set runners!"

0 comments on commit 73c3439

Please sign in to comment.