Skip to content

Commit 171a837

Browse files
committed
Format workflows
1 parent e5d4dcd commit 171a837

File tree

3 files changed

+38
-38
lines changed

3 files changed

+38
-38
lines changed

.github/workflows/update-release-status.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,22 +135,22 @@ jobs:
135135
echo "check-run-head-sha=$CHECK_RUN_HEAD_SHA" >> "$GITHUB_OUTPUT"
136136
137137
generate-token:
138-
runs-on: ubuntu-latest
139-
outputs:
140-
token: ${{ steps.generate-token.outputs.token }}
141-
steps:
142-
- name: Generate token
143-
id: generate-token
144-
uses: actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
145-
with:
146-
app_id: ${{ vars.AUTOMATION_APP_ID }}
147-
private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
138+
runs-on: ubuntu-latest
139+
outputs:
140+
token: ${{ steps.generate-token.outputs.token }}
141+
steps:
142+
- name: Generate token
143+
id: generate-token
144+
uses: actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
145+
with:
146+
app_id: ${{ vars.AUTOMATION_APP_ID }}
147+
private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
148148

149149
update-release:
150150
needs: [validate-check-runs, generate-token]
151151
if: needs.validate-check-runs.outputs.status == 'completed'
152152
uses: ./.github/workflows/update-release.yml
153153
with:
154-
head-sha: ${{ needs.validate-check-runs.outputs.check-run-head-sha }}
154+
head-sha: ${{ needs.validate-check-runs.outputs.check-run-head-sha }}
155155
secrets:
156-
RELEASE_ENGINEERING_TOKEN: ${{ generate-token.outputs.token }}
156+
RELEASE_ENGINEERING_TOKEN: ${{ generate-token.outputs.token }}

.github/workflows/update-release.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,17 @@ env:
2323
HEAD_SHA: ${{ inputs.head-sha }}
2424

2525
jobs:
26-
2726
generate-token:
28-
runs-on: ubuntu-latest
29-
outputs:
30-
token: ${{ steps.generate-token.outputs.token }}
31-
steps:
32-
- name: Generate token
33-
id: generate-token
34-
uses: actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
35-
with:
36-
app_id: ${{ vars.AUTOMATION_APP_ID }}
37-
private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
27+
runs-on: ubuntu-latest
28+
outputs:
29+
token: ${{ steps.generate-token.outputs.token }}
30+
steps:
31+
- name: Generate token
32+
id: generate-token
33+
uses: actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
34+
with:
35+
app_id: ${{ vars.AUTOMATION_APP_ID }}
36+
private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
3837

3938
update-release:
4039
name: "Update release"

.github/workflows/validate-release.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ env:
1515

1616
jobs:
1717
generate-token:
18-
runs-on: ubuntu-latest
19-
outputs:
20-
token: ${{ steps.generate-token.outputs.token }}
21-
steps:
22-
- name: Generate token
23-
id: generate-token
24-
uses: actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
25-
with:
26-
app_id: ${{ vars.AUTOMATION_APP_ID }}
27-
private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
18+
runs-on: ubuntu-latest
19+
outputs:
20+
token: ${{ steps.generate-token.outputs.token }}
21+
steps:
22+
- name: Generate token
23+
id: generate-token
24+
uses: actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
25+
with:
26+
app_id: ${{ vars.AUTOMATION_APP_ID }}
27+
private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
2828

2929
pre-validate-performance:
3030
outputs:
@@ -72,8 +72,8 @@ jobs:
7272
steps:
7373
- name: Fail check run status
7474
env:
75-
CHECK_RUN_ID: ${{ needs.pre-validate-performance.outputs.check-run-id }}
76-
GITHUB_TOKEN: ${{ github.token }}
75+
CHECK_RUN_ID: ${{ needs.pre-validate-performance.outputs.check-run-id }}
76+
GITHUB_TOKEN: ${{ github.token }}
7777
run: |
7878
jq -n \
7979
--arg status "completed" \
@@ -127,14 +127,15 @@ jobs:
127127
--ref rvermeulen/release-process
128128
129129
on-failure-validate-compiler-compatibility-dispatch:
130-
needs: [pre-validate-compiler-compatibility, validate-compiler-compatibility]
130+
needs:
131+
[pre-validate-compiler-compatibility, validate-compiler-compatibility]
131132
if: failure()
132133
runs-on: ubuntu-22.04
133134
steps:
134135
- name: Fail check run status
135136
env:
136-
CHECK_RUN_ID: ${{ needs.pre-validate-compiler-compatibility.outputs.check-run-id }}
137-
GITHUB_TOKEN: ${{ github.token }}
137+
CHECK_RUN_ID: ${{ needs.pre-validate-compiler-compatibility.outputs.check-run-id }}
138+
GITHUB_TOKEN: ${{ github.token }}
138139
run: |
139140
jq -n \
140141
--arg status "completed" \

0 commit comments

Comments
 (0)