Skip to content

Commit 35df5ce

Browse files
committed
chore: Update GitHub Action tags to commit hashes
1 parent e7e6738 commit 35df5ce

File tree

3 files changed

+61
-37
lines changed

3 files changed

+61
-37
lines changed
Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
1-
name: Change File Included in PR
2-
3-
on:
1+
"on":
42
pull_request:
5-
types: [opened, synchronize, reopened, labeled]
6-
3+
types:
4+
- opened
5+
- synchronize
6+
- reopened
7+
- labeled
8+
name: Change File Included in PR
79
jobs:
810
check-files-in-directory:
911
if: ${{ !contains(github.event.pull_request.labels.*.name, 'Release Not Needed') && !contains(github.event.pull_request.labels.*.name, 'Release PR') }}
10-
name: Change File Included in PR
1112
runs-on: ubuntu-latest
12-
13+
name: Change File Included in PR
1314
steps:
14-
- name: Checkout PR code
15-
uses: actions/checkout@v3
16-
17-
- name: Get List of Changed Files
18-
id: changed-files
19-
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf #v45
20-
21-
- name: Check for Change File(s) in .autover/changes/
22-
run: |
23-
DIRECTORY=".autover/changes/"
24-
if echo "${{ steps.changed-files.outputs.all_changed_files }}" | grep -q "$DIRECTORY"; then
25-
echo "✅ One or more change files in '$DIRECTORY' are included in this PR."
26-
else
27-
echo "❌ No change files in '$DIRECTORY' are included in this PR."
28-
echo "Refer to the 'Adding a change file to your contribution branch' section of https://github.com/aws/aws-extensions-for-dotnet-cli/blob/master/CONTRIBUTING.md"
29-
exit 1
30-
fi
15+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
16+
name: Checkout PR code
17+
- uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf
18+
id: changed-files
19+
name: Get List of Changed Files
20+
- run: |
21+
DIRECTORY=".autover/changes/"
22+
if echo "${{ steps.changed-files.outputs.all_changed_files }}" | grep -q "$DIRECTORY"; then
23+
echo "✅ One or more change files in '$DIRECTORY' are included in this PR."
24+
else
25+
echo "❌ No change files in '$DIRECTORY' are included in this PR."
26+
echo "Refer to the 'Adding a change file to your contribution branch' section of https://github.com/aws/aws-extensions-for-dotnet-cli/blob/master/CONTRIBUTING.md"
27+
exit 1
28+
fi
29+
name: Check for Change File(s) in .autover/changes/
Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
# Apply potential regression label on issues
2-
name: issue-regression-label
3-
on:
1+
"on":
42
issues:
5-
types: [opened, edited]
3+
types:
4+
- opened
5+
- edited
6+
name: issue-regression-label
67
jobs:
78
add-regression-label:
8-
runs-on: ubuntu-latest
99
permissions:
1010
issues: write
11+
runs-on: ubuntu-latest
1112
steps:
12-
- name: Fetch template body
13-
id: check_regression
14-
uses: actions/github-script@v7
15-
env:
16-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17-
TEMPLATE_BODY: ${{ github.event.issue.body }}
13+
- id: check_regression
14+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
1815
with:
1916
script: |
2017
const regressionPattern = /\[x\] Select this option if this issue appears to be a regression\./i;
2118
const template = `${process.env.TEMPLATE_BODY}`
2219
const match = regressionPattern.test(template);
2320
core.setOutput('is_regression', match);
24-
- name: Manage regression label
21+
name: Fetch template body
2522
env:
23+
TEMPLATE_BODY: ${{ github.event.issue.body }}
2624
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
run: |
25+
- run: |
2826
if [ "${{ steps.check_regression.outputs.is_regression }}" == "true" ]; then
2927
gh issue edit ${{ github.event.issue.number }} --add-label "potential-regression" -R ${{ github.repository }}
3028
else
3129
gh issue edit ${{ github.event.issue.number }} --remove-label "potential-regression" -R ${{ github.repository }}
3230
fi
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
name: Manage regression label

tag_updates.log

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[2025-05-01 14:58:41] Checking out dev branch...
2+
[2025-05-01 14:58:42] Processing workflow file: C:\dev\testing\aws-repos\aws-extensions-for-dotnet-cli\.github\workflows\aws-ci.yml
3+
[2025-05-01 14:58:42] Processing workflow file: C:\dev\testing\aws-repos\aws-extensions-for-dotnet-cli\.github\workflows\change-file-in-pr.yml
4+
[2025-05-01 14:58:42] Found action with version tag: actions/checkout@v3
5+
[2025-05-01 14:58:42] Resolving commit hash for actions/checkout@v3...
6+
[2025-05-01 14:58:42] API Request: GET repos/actions/checkout/git/refs/tags/v3
7+
[2025-05-01 14:58:42] Resolved to commit: f43a0e5ff2bd294095638e18286ca9a3d1956744
8+
[2025-05-01 14:58:42] Updating action from actions/checkout@v3 to actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
9+
[2025-05-01 14:58:42] Writing changes to C:\dev\testing\aws-repos\aws-extensions-for-dotnet-cli\.github\workflows\change-file-in-pr.yml
10+
[2025-05-01 14:58:42] Processing workflow file: C:\dev\testing\aws-repos\aws-extensions-for-dotnet-cli\.github\workflows\closed-issue-message.yml
11+
[2025-05-01 14:58:42] Processing workflow file: C:\dev\testing\aws-repos\aws-extensions-for-dotnet-cli\.github\workflows\create-release-pr.yml
12+
[2025-05-01 14:58:42] Processing workflow file: C:\dev\testing\aws-repos\aws-extensions-for-dotnet-cli\.github\workflows\handle-stale-discussions.yml
13+
[2025-05-01 14:58:42] Processing workflow file: C:\dev\testing\aws-repos\aws-extensions-for-dotnet-cli\.github\workflows\issue-regression-labeler.yml
14+
[2025-05-01 14:58:42] Found action with version tag: actions/github-script@v7
15+
[2025-05-01 14:58:42] Resolving commit hash for actions/github-script@v7...
16+
[2025-05-01 14:58:42] API Request: GET repos/actions/github-script/git/refs/tags/v7
17+
[2025-05-01 14:58:43] Found annotated tag, resolving actual commit...
18+
[2025-05-01 14:58:43] API Request: GET repos/actions/github-script/git/tags/5c56fde4671bc2d3592fb0f2c5b5bab9ddae03b1
19+
[2025-05-01 14:58:43] Resolved to commit: 60a0d83039c74a4aee543508d2ffcb1c3799cdea
20+
[2025-05-01 14:58:43] Updating action from actions/github-script@v7 to actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
21+
[2025-05-01 14:58:43] Writing changes to C:\dev\testing\aws-repos\aws-extensions-for-dotnet-cli\.github\workflows\issue-regression-labeler.yml
22+
[2025-05-01 14:58:43] Processing workflow file: C:\dev\testing\aws-repos\aws-extensions-for-dotnet-cli\.github\workflows\stale_issues.yml
23+
[2025-05-01 14:58:43] Processing workflow file: C:\dev\testing\aws-repos\aws-extensions-for-dotnet-cli\.github\workflows\sync-master-dev.yml
24+
[2025-05-01 14:58:43] Committing changes...

0 commit comments

Comments
 (0)