-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Readme, remove dry-run from action
- Loading branch information
1 parent
8f6ee73
commit e3cf14d
Showing
2 changed files
with
17 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,43 +13,40 @@ From the repository the workflow is running from it will require a JSON file cal | |
``` | ||
In .github/workflows/automerge.yml | ||
```yaml | ||
name: 'Automerger' | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '*/20 * * * *' | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
name: Test Workflow | ||
|
||
jobs: | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
list: | ||
name: 'List Repos' | ||
runs-on: [linux] | ||
runs-on: [ubuntu-latest] | ||
outputs: | ||
matrix: ${{ steps.list.outputs.value }} | ||
steps: | ||
- name: 'Check out devops repo' | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4.0.0 | ||
- id: list | ||
name: 'List automerge repos' | ||
run: echo "value=$(cat automerge.json | tr -d '\n')" >> $GITHUB_OUTPUT | ||
|
||
automerge: | ||
run: echo "value=$(cat test/automerge.json | tr -d '\n')" >> $GITHUB_OUTPUT | ||
automerge-test: | ||
name: 'Automerge' | ||
runs-on: [self-hosted, linux, flyweight] | ||
runs-on: [ubuntu-latest] | ||
needs: list | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
value: ${{fromJson(needs.list.outputs.matrix)}} | ||
steps: | ||
- name: 'Check out devops repo' | ||
uses: actions/checkout@v3 | ||
- name: 'Check Automerge Repo to Test' | ||
uses: actions/[email protected] | ||
|
||
- name: 'Automerge runtimeverification/${{ matrix.value }}' | ||
uses: ./.github/actions/automerge | ||
uses: ./ # This uses the action in the root directory | ||
with: | ||
org: 'runtimeverification' | ||
repo: ${{ matrix.value }} | ||
token: ${{ secrets.JENKINS_GITHUB_PAT }} | ||
token: ${{ secrets.GITHUB_PAT }} | ||
|
||
``` |
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