Skip to content

Commit cb974df

Browse files
Bump the actions group with 3 updates (#1014)
* Bump the actions group with 3 updates Bumps the actions group with 3 updates: [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter), [tj-actions/changed-files](https://github.com/tj-actions/changed-files) and [actions/github-script](https://github.com/actions/github-script). Updates `release-drafter/release-drafter` from 5 to 6 - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](release-drafter/release-drafter@v5...v6) Updates `tj-actions/changed-files` from 45.0.4 to 46.0.5 - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](tj-actions/changed-files@4edd678...ed68ef8) Updates `actions/github-script` from 0.9.0 to 7.0.1 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](actions/github-script@0.9.0...v7.0.1) --- updated-dependencies: - dependency-name: release-drafter/release-drafter dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: tj-actions/changed-files dependency-version: 46.0.5 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/github-script dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <[email protected]> * Update scripts --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Cristian Greco <[email protected]>
1 parent 069ce51 commit cb974df

File tree

3 files changed

+37
-31
lines changed

3 files changed

+37
-31
lines changed

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
runs-on: ubuntu-22.04
1414
steps:
1515
# Drafts your next Release notes as Pull Requests are merged into "main"
16-
- uses: release-drafter/release-drafter@v5
16+
- uses: release-drafter/release-drafter@v6
1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
- id: changed-files
3333
name: Get changed files
34-
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf # v45.0.4
34+
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
3535

3636
- id: set-modified-modules
3737
name: Set all modified modules

.github/workflows/windows-test.yml

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,20 @@ jobs:
1111
fail-fast: false
1212
steps:
1313
- name: Create pending status
14-
uses: actions/github-script@0.9.0
14+
uses: actions/github-script@v7.0.1
1515
with:
1616
github-token: ${{ secrets.GITHUB_TOKEN }}
1717
script: |
18-
github.repos.createStatus({
19-
owner: context.repo.owner,
20-
repo: context.repo.repo,
21-
sha: context.payload.client_payload.pull_request.head.sha,
22-
state: 'pending',
23-
target_url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`,
24-
context: 'Test Windows',
25-
})
18+
async ({ github, context }) => {
19+
await github.rest.repos.createCommitStatus({
20+
owner: context.repo.owner,
21+
repo: context.repo.repo,
22+
sha: context.payload.client_payload.pull_request.head.sha,
23+
state: 'pending',
24+
target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
25+
context: 'Test Windows',
26+
});
27+
}
2628
2729
- name: Checkout
2830
uses: actions/checkout@v4
@@ -43,31 +45,35 @@ jobs:
4345
run: npm run test:ci
4446

4547
- name: Create success status
46-
uses: actions/github-script@0.9.0
48+
uses: actions/github-script@v7.0.1
4749
if: success()
4850
with:
49-
github-token: ${{secrets.GITHUB_TOKEN}}
51+
github-token: ${{ secrets.GITHUB_TOKEN }}
5052
script: |
51-
github.repos.createStatus({
52-
owner: context.repo.owner,
53-
repo: context.repo.repo,
54-
sha: context.payload.client_payload.pull_request.head.sha,
55-
state: 'success',
56-
target_url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`,
57-
context: 'Test Windows',
58-
})
53+
async ({ github, context }) => {
54+
await github.rest.repos.createCommitStatus({
55+
owner: context.repo.owner,
56+
repo: context.repo.repo,
57+
sha: context.payload.client_payload.pull_request.head.sha,
58+
state: 'success',
59+
target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
60+
context: 'Test Windows',
61+
});
62+
}
5963
6064
- name: Create failure status
61-
uses: actions/github-script@0.9.0
65+
uses: actions/github-script@v7.0.1
6266
if: failure()
6367
with:
64-
github-token: ${{secrets.GITHUB_TOKEN}}
68+
github-token: ${{ secrets.GITHUB_TOKEN }}
6569
script: |
66-
github.repos.createStatus({
67-
owner: context.repo.owner,
68-
repo: context.repo.repo,
69-
sha: context.payload.client_payload.pull_request.head.sha,
70-
state: 'failure',
71-
target_url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`,
72-
context: 'Test Windows',
73-
})
70+
async ({ github, context }) => {
71+
await github.rest.repos.createCommitStatus({
72+
owner: context.repo.owner,
73+
repo: context.repo.repo,
74+
sha: context.payload.client_payload.pull_request.head.sha,
75+
state: 'failure',
76+
target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
77+
context: 'Test Windows',
78+
});
79+
}

0 commit comments

Comments
 (0)