Skip to content

Commit

Permalink
Add test w/ and w/o comment enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rv-jenkins committed Mar 16, 2024
1 parent 915a1bb commit 0473425
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,14 @@ jobs:
repo: ${{ matrix.value }}
token: ${{ secrets.JENKINS_GITHUB_PAT }}
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: ${{ secrets.JENKINS_GITHUB_PAT }}
debug: --dry-run
comment: 'true'

9 changes: 8 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ inputs:
description: 'Debug mode'
required: false
default: ''
comment:
description: 'Use Predefined comment'
required: false
default: 'false'
outputs:
merged:
value: ${{ steps.automerge.outputs.merged }}
Expand Down Expand Up @@ -54,5 +58,8 @@ runs:
GITHUB_TOKEN: ${{ inputs.token }}
working-directory: tmp-${{ inputs.repo }}
run: |
python3 ${{ github.action_path }}/src/automerge.py --org ${{ inputs.org }} --repo ${{ inputs.repo }} ${{ inputs.debug }}
if {{ inputs.comment }} == 'true'; then
python3 ${{ github.action_path }}/src/automerge.py --org ${{ inputs.org }} --repo ${{ inputs.repo }} --comment
else
python3 ${{ github.action_path }}/src/automerge.py --org ${{ inputs.org }} --repo ${{ inputs.repo }} ${{ inputs.debug }}

0 comments on commit 0473425

Please sign in to comment.