Skip to content

Commit

Permalink
Update Readme, remove dry-run from action
Browse files Browse the repository at this point in the history
  • Loading branch information
F-WRunTime committed Jan 24, 2024
1 parent 8f6ee73 commit e3cf14d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
35 changes: 16 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

```
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ runs:
env:
GITHUB_TOKEN: ${{ inputs.token }}
working-directory: tmp-${{ inputs.repo }}
run: python3 ../src/automerge.py --dry-run --org ${{ inputs.org }} --repo ${{ inputs.repo }}
run: python3 ../src/automerge.py --org ${{ inputs.org }} --repo ${{ inputs.repo }}

0 comments on commit e3cf14d

Please sign in to comment.