modified: src/automerge.py #38
Workflow file for this run
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: Test Workflow | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
list: | |
name: 'List Repos' | |
runs-on: [ubuntu-latest] | |
outputs: | |
matrix: ${{ steps.list.outputs.value }} | |
token: ${{ steps.automerge_token.outputs.token }} | |
steps: | |
- name: 'Generate GitHub App Token' | |
id: automerge_token | |
uses: actions/[email protected] | |
with: | |
app-id: ${{ secrets.AUTOMERGE_APP_ID }} | |
private-key: ${{ secrets.AUTOMERGE_APP_PRIVATE_KEY }} | |
owner: ${{ github.repository_owner }} | |
- name: 'Check out devops repo' | |
env: | |
token: ${{ steps.automerge_token.outputs.token }} | |
uses: actions/[email protected] | |
- id: list | |
name: 'List automerge repos' | |
run: echo "value=$(cat test/automerge.json | tr -d '\n')" >> $GITHUB_OUTPUT | |
automerge-test: | |
name: 'Automerge' | |
runs-on: [ubuntu-latest] | |
needs: list | |
strategy: | |
fail-fast: false | |
matrix: | |
value: ${{fromJson(needs.list.outputs.matrix)}} | |
steps: | |
- name: 'Generate GitHub App Token' | |
id: automerge_token | |
uses: actions/[email protected] | |
with: | |
app-id: ${{ secrets.AUTOMERGE_APP_ID }} | |
private-key: ${{ secrets.AUTOMERGE_APP_PRIVATE_KEY }} | |
owner: ${{ github.repository_owner }} | |
- name: 'Check Automerge Repo to Test' | |
env: | |
token: ${{ steps.automerge_token.outputs.token }} | |
uses: actions/checkout@v4 | |
- name: 'Automerge runtimeverification/${{ matrix.value }}' | |
uses: ./ # This uses the action in the root directory | |
id: automerge | |
with: | |
org: 'runtimeverification' | |
repo: ${{ matrix.value }} | |
token: ${{ steps.automerge_token.outputs.token }} | |
debug: --dry-run | |
- name: 'Automerge runtimeverification/${{ matrix.value }}' | |
uses: ./ # This uses the action in the root directory | |
id: automerge-comment | |
with: | |
org: 'runtimeverification' | |
repo: ${{ matrix.value }} | |
token: ${{ steps.automerge_token.outputs.token }} | |
debug: --dry-run | |
comment: 'true' | |