You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "If some branches were delete, what branches were they."
48
48
value: ${{ jobs.add-headers.outputs.deleted }}
@@ -86,27 +86,28 @@ jobs:
86
86
working-directory: ${{ inputs.work-dir }}
87
87
branch-prefix: add-license-headers-to
88
88
commit-message: Add License and Copyright Headers
89
+
exclude: .github/workflows/*
89
90
90
91
annotate:
91
92
runs-on: ubuntu-latest
92
93
concurrency: prune:bot-comments
93
94
needs: add-headers
94
95
steps:
95
96
- name: Commit comment
96
-
if: needs.add-headers.outputs.made-change == 1
97
+
if: needs.add-headers.outputs.made-change
97
98
uses: peter-evans/commit-comment@v4
98
99
with:
99
100
body: >
100
101
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.
101
102
102
103
- name: Hide old PR comments
103
-
if: needs.add-headers.outputs.made-change == 0
104
+
if: ${{ !needs.add-headers.outputs.made-change }}
104
105
uses: kanga333/comment-hider@v0.4.0
105
106
with:
106
107
github_token: ${{ secrets.GITHUB_TOKEN }}
107
108
108
109
- name: PR comment
109
-
if: needs.add-headers.outputs.made-change == 1
110
+
if: needs.add-headers.outputs.made-change
110
111
uses: mshick/add-pr-comment@v2
111
112
with:
112
113
refresh-message-position: true
@@ -115,7 +116,7 @@ jobs:
115
116
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).
0 commit comments