Skip to content

Commit afa2f17

Browse files
authored
Merge pull request #105 from UoMResearchIT/fix-wonky-detection
Fix wonky detection
2 parents 7014765 + 1cd827c commit afa2f17

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/apply-reuse.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ on:
3939
outputs:
4040
check-failed:
4141
description: "Whether the check applied by this workflow 'failed'."
42-
value: ${{ jobs.add-headers.outputs.made-change }}
42+
value: ${{ jobs.add-headers.outputs.made-change == 'true' }}
4343
branch-created:
4444
description: "If a branch was created, the name of that branch."
45-
value: ${{ jobs.add-headers.outputs.made-change && jobs.add-headers.outputs.branch || '' }}
45+
value: ${{ jobs.add-headers.outputs.made-change == 'true' && jobs.add-headers.outputs.branch || '' }}
4646
branches-deleted:
4747
description: "If some branches were delete, what branches were they."
4848
value: ${{ jobs.add-headers.outputs.deleted }}
@@ -94,20 +94,20 @@ jobs:
9494
needs: add-headers
9595
steps:
9696
- name: Commit comment
97-
if: needs.add-headers.outputs.made-change
97+
if: needs.add-headers.outputs.made-change == 'true'
9898
uses: peter-evans/commit-comment@v4
9999
with:
100100
body: >
101101
Copyright updates at [.../compare/${{ inputs.branch }}...${{ needs.add-headers.outputs.branch }}](${{ github.server_url }}/${{ github.repository }}/compare/${{ inputs.branch }}...${{ needs.add-headers.outputs.branch }}?expand=1), please review and merge.
102102
103103
- name: Hide old PR comments
104-
if: ${{ !needs.add-headers.outputs.made-change }}
104+
if: needs.add-headers.outputs.made-change == 'false'
105105
uses: kanga333/comment-hider@v0.4.0
106106
with:
107107
github_token: ${{ secrets.GITHUB_TOKEN }}
108108

109109
- name: PR comment
110-
if: needs.add-headers.outputs.made-change
110+
if: needs.add-headers.outputs.made-change == 'true'
111111
uses: mshick/add-pr-comment@v2
112112
with:
113113
refresh-message-position: true
@@ -116,7 +116,7 @@ jobs:
116116
There are copyright updates on the (temporary) [${{ needs.add-headers.outputs.branch }} branch](${{ github.server_url }}/${{ github.repository }}/compare/${{ inputs.branch }}...${{ needs.add-headers.outputs.branch }}?expand=1). Please review and merge, or add further commits (this branch will be deleted).
117117
118118
- name: Fail marker
119-
if: needs.add-headers.outputs.made-change
119+
if: needs.add-headers.outputs.made-change == 'true'
120120
uses: actions/github-script@v8
121121
with:
122122
script: |

0 commit comments

Comments
 (0)