Merge pull request #55 from gruntwork-io/caitlin/test-secret-ci #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Patcher Tests" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
patcher-report: | |
runs-on: ubuntu-latest | |
outputs: | |
spec: ${{ steps.run-report.outputs.spec }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Patcher | |
id: run-report | |
uses: ./ | |
with: | |
github_token: ${{ secrets.CI_READONLY_READ_TOKEN }} | |
patcher_command: report | |
working_dir: infrastructure-live | |
spec_file: spec.json | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: spec-file | |
path: spec.json | |
patcher-update: | |
# Runs patcher update against each dependency in the spec file | |
needs: [patcher-report] | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
max-parallel: 2 | |
matrix: | |
include: ${{ fromJson(needs.patcher-report.outputs.spec).Dependencies }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Load spec file | |
uses: actions/download-artifact@v4 | |
with: | |
name: spec-file | |
- name: Patcher | |
id: run-update | |
uses: ./ | |
with: | |
github_token: ${{ secrets.CI_READONLY_READ_TOKEN }} | |
patcher_command: update | |
working_dir: infrastructure-live | |
spec_file: spec.json | |
pull_request_title: "[Patcher] Update ${{ matrix.ID }}" | |
pull_request_branch: "patcher-updates-${{ matrix.ID }}" | |
dependency: ${{ matrix.ID }} |