Skip to content

Commit 392c0ef

Browse files
authored
ci: anchor action to commit (#1177)
Co-authored-by: Ashish Padhy <ashishpadhy1729@gmail.com>
1 parent d6bfdfa commit 392c0ef

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/lint-pr-adr.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Parse PR label and title
19-
uses: actions/github-script@v6
19+
uses: actions/github-script@v7
2020
id: lint_title_adr
2121
with:
2222
result-encoding: json
@@ -56,7 +56,7 @@ jobs:
5656
echo ${{ fromJSON(steps.lint_title_adr.outputs.result).message }}
5757
exit 1
5858
- if: always() && (fromJSON(steps.lint_title_adr.outputs.result).status == 'ko')
59-
uses: marocchino/sticky-pull-request-comment@v2
59+
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 #https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.1
6060
# When the previous steps fails, the workflow would stop. By adding this
6161
# condition you can continue the execution with the populated error message.
6262
with:
@@ -70,19 +70,19 @@ jobs:
7070
```
7171
# Delete a previous comment when the issue has been resolved
7272
- if: (fromJSON(steps.lint_title_adr.outputs.result).status == 'ok')
73-
uses: marocchino/sticky-pull-request-comment@v2
73+
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 #https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.1
7474
with:
7575
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
7676
header: pr-title-lint-adr-error
7777
delete: true
7878
- if: (fromJSON(steps.lint_title_adr.outputs.result).status == 'ok')
7979
name: Get all changed files
8080
id: changed_files_all
81-
uses: tj-actions/changed-files@v41
81+
uses: tj-actions/changed-files@af292f1e845a0377b596972698a8598734eb2796 # using https://github.com/tj-actions/changed-files/releases/tag/v40
8282
- if: (fromJSON(steps.lint_title_adr.outputs.result).status == 'ok')
8383
name: Get files that should be changed
8484
id: changed_files_only
85-
uses: tj-actions/changed-files@v41
85+
uses: tj-actions/changed-files@af292f1e845a0377b596972698a8598734eb2796 # using https://github.com/tj-actions/changed-files/releases/tag/v40
8686
with:
8787
files: |
8888
${{ fromJSON(steps.lint_title_adr.outputs.result).expectedFileMatch }}
@@ -99,7 +99,7 @@ jobs:
9999
fi
100100
- if: always() && steps.changed_files_check.outputs.only_adr == 0 && (fromJSON(steps.lint_title_adr.outputs.result).status == 'ok')
101101
name: Comment files changed
102-
uses: marocchino/sticky-pull-request-comment@v2
102+
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 #https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.1
103103
# When the previous steps fails, the workflow would stop. By adding this
104104
# condition you can continue the execution with the populated error message.
105105
with:
@@ -115,7 +115,7 @@ jobs:
115115
# Delete a previous comment when the issue has been resolved
116116
- if: steps.changed_files_check.outputs.only_adr == 1 && (fromJSON(steps.lint_title_adr.outputs.result).status == 'ok')
117117
name: Delete comment fail changed
118-
uses: marocchino/sticky-pull-request-comment@v2
118+
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 #https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.1
119119
with:
120120
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
121121
header: pr-files-changed-adr-error

0 commit comments

Comments
 (0)