Skip to content

Commit dcc2284

Browse files
authored
deps: update updater action dependencies (#61)
1 parent 6f95db3 commit dcc2284

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

.github/workflows/updater.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
runs-on: ubuntu-latest
6969
steps:
7070
- name: Cancel Previous Runs
71-
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # Tag: 0.11.0
71+
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # Tag: 0.12.0
7272
with:
7373
access_token: ${{ github.token }}
7474

@@ -147,7 +147,7 @@ jobs:
147147
148148
- name: Fetch an existing PR
149149
if: ${{ ( steps.target.outputs.latestTag != steps.target.outputs.originalTag ) && ( steps.root.outputs.changed == 'false') }}
150-
uses: octokit/request-action@89a1754fe82ca777b044ca8e79e9881a42f15a93 # v2.1.7
150+
uses: octokit/request-action@89697eb6635e52c6e1e5559f15b5c91ba5100cb0 # v2.1.9
151151
id: existing-pr-request
152152
with:
153153
route: GET /repos/${{ github.repository }}/pulls?base={base}&head={head}
@@ -195,7 +195,7 @@ jobs:
195195
# First we create a PR only if it doesn't exist. We will later overwrite the content with the same action.
196196
- name: Create a PR
197197
if: ${{ ( steps.target.outputs.latestTag != steps.target.outputs.originalTag ) && ( steps.existing-pr.outputs.url == '') && ( steps.root.outputs.changed == 'false') }}
198-
uses: peter-evans/create-pull-request@b4d51739f96fca8047ad065eccef63442d8e99f7 # pin#v4
198+
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # pin#v5.0.2
199199
id: create-pr
200200
with:
201201
base: ${{ steps.root.outputs.baseBranch }}
@@ -258,7 +258,7 @@ jobs:
258258
# Now make the PR in its final state. This way we only have one commit and no updates if there are no changes between runs.
259259
- name: Update the PR
260260
if: ${{ ( steps.target.outputs.latestTag != steps.target.outputs.originalTag ) && ( steps.root.outputs.changed == 'false') }}
261-
uses: peter-evans/create-pull-request@b4d51739f96fca8047ad065eccef63442d8e99f7
261+
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # pin#v5.0.2
262262
with:
263263
base: ${{ steps.root.outputs.baseBranch }}
264264
branch: ${{ steps.root.outputs.prBranch }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- Sentry-CLI integration test action: support envelopes ([#58](https://github.com/getsentry/github-workflows/pull/58))
88

9+
### Dependencies
10+
11+
- Bump updater action dependencies ([#61](https://github.com/getsentry/github-workflows/pull/61))
12+
913
## 2.7.0
1014

1115
### Features

updater/tests/nonbot-commits.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Set-StrictMode -Version latest
55
function NonBotCommits([Parameter(Mandatory = $true)][string] $branch)
66
{
77
$result = & "$PSScriptRoot/../scripts/nonbot-commits.ps1" `
8-
-RepoUrl 'https://github.com/getsentry/github-workflows' -MainBranch "main" -PrBranch $branch
8+
-RepoUrl 'https://github.com/getsentry/github-workflows' -MainBranch 'main' -PrBranch $branch
99
if (-not $?)
1010
{
1111
throw $result
@@ -17,17 +17,17 @@ function NonBotCommits([Parameter(Mandatory = $true)][string] $branch)
1717
$result
1818
}
1919

20-
RunTest "empty-if-all-commits-by-bot" {
20+
RunTest 'empty-if-all-commits-by-bot' {
2121
$commits = NonBotCommits 'deps/updater/tests/sentry-cli.properties'
22-
AssertEqual "$commits" ""
22+
AssertEqual '' "$commits"
2323
}
2424

25-
RunTest "empty-if-branch-doesnt-exist" {
25+
RunTest 'empty-if-branch-doesnt-exist' {
2626
$commits = NonBotCommits 'non-existent-branch'
27-
AssertEqual "$commits" ""
27+
AssertEqual '' "$commits"
2828
}
2929

30-
RunTest "non-empty-if-changed" {
30+
RunTest 'non-empty-if-changed' {
3131
$commits = NonBotCommits 'test/nonbot-commits'
32-
AssertEqual "$commits" "6133a25 Update README.md"
32+
AssertEqual '0b7d9cc test: keep this branch' "$commits"
3333
}

0 commit comments

Comments
 (0)