Skip to content

Commit

Permalink
Set vars from matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpugh committed Mar 21, 2024
1 parent 8541439 commit bfb08f4
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ jobs:

strategy:
matrix:
os:
- ubuntu-latest

php-version:
- "8.1"
- name: pr${{ github.event.number }}
token: ${{ secrets.RUNNER_TOKEN }}
repo_url: ${{ github.repositoryUrl }}
environment: test

steps:
- uses: actions/checkout@v3
Expand All @@ -44,10 +43,10 @@ jobs:
- name: Set variables
run: |
echo "ash_github_runners:
- repo_url: {{ github.repositoryUrl }}
runner_token: {{ secrets.RUNNER_TOKEN }}
runner_name: "ash.pr${{ github.event.number }}"
runner_labels: ci,ash
- repo_url: ${{ matrix.repo_url }}
runner_token: ${{ matrix.token }}
runner_name: "ash.${{ matrix.name }}"
runner_labels: ci,ash,${{ matrix.environment }}"
user: platform
" > vars.ci.yml
cat vars.ci.yml
Expand Down

0 comments on commit bfb08f4

Please sign in to comment.