Skip to content

Commit f455295

Browse files
authored
Merge pull request #4169 from github/mbg/improve-release-workflow
Improve job naming for the release workflow
2 parents 7265309 + 488027b commit f455295

5 files changed

Lines changed: 15 additions & 11 deletions

File tree

‎.github/actions/prepare-mergeback-branch/action.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ runs:
9292
Please do the following:
9393
9494
- [ ] Approve running the full set of PR checks.
95-
- [ ] Approve and merge the PR. When merging the PR, make sure "Create a merge commit" is
96-
selected rather than "Squash and merge" or "Rebase and merge".
95+
- [ ] Approve and merge the PR. When merging the PR, make sure "Create a merge commit" is selected rather than "Squash and merge" or "Rebase and merge".
9796
EOF
9897
)
9998

‎.github/workflows/prepare-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ defaults:
2828

2929
jobs:
3030
prepare:
31-
name: "Prepare release"
31+
name: "Release info"
3232
runs-on: ubuntu-latest
3333
if: github.repository == 'github/codeql-action'
3434

‎.github/workflows/rollback-release.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ on:
1010
required: true
1111
# Only for dry-runs of changes to the workflow.
1212
push:
13-
# Don't run dry-run on release branches, to avoid an issue where the
14-
# "new" tag determined by the "Prepare release" job already exists.
13+
# Don't run dry-run on release branches, since that's unnecessary.
1514
branches-ignore:
1615
- releases/v*
1716
paths:
@@ -24,7 +23,7 @@ defaults:
2423

2524
jobs:
2625
prepare:
27-
name: "Prepare release"
26+
name: "Prepare"
2827
if: github.repository == 'github/codeql-action'
2928

3029
permissions:
@@ -107,8 +106,10 @@ jobs:
107106
# We usually expect to checkout `inputs.rollback-tag` (required for `workflow_dispatch`),
108107
# but use `v0.0.0` for testing.
109108
ROLLBACK_TAG: ${{ inputs.rollback-tag || 'v0.0.0' }}
110-
RELEASE_TAG: ${{ needs.prepare.outputs.version }}
111-
MAJOR_VERSION_TAG: ${{ needs.prepare.outputs.major_version }}
109+
# Use `needs.prepare.outputs.version` for actual runs and `v0.0.1` for testing.
110+
RELEASE_TAG: ${{ case(github.event_name == 'workflow_dispatch', needs.prepare.outputs.version, 'v0.0.1') }}
111+
# Use `needs.prepare.outputs.major_version` for actual runs and `v0` for testing.
112+
MAJOR_VERSION_TAG: ${{ case(github.event_name == 'workflow_dispatch', needs.prepare.outputs.major_version, 'v0') }}
112113
run: |
113114
git checkout "refs/tags/${ROLLBACK_TAG}"
114115
git tag --annotate "${RELEASE_TAG}" --message "${RELEASE_TAG}"
@@ -184,4 +185,3 @@ jobs:
184185
# Setting this to `true` for non-workflow_dispatch events will
185186
# still push the `branch`, but won't create a corresponding PR
186187
dry-run: "${{ github.event_name != 'workflow_dispatch' }}"
187-

‎.github/workflows/update-release-branch.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ defaults:
1616
shell: bash
1717

1818
jobs:
19-
2019
prepare:
21-
name: "Prepare release"
20+
name: "Prepare"
2221
permissions:
2322
contents: read
2423

2524
uses: ./.github/workflows/prepare-release.yml
2625

2726
update:
27+
name: "Update release branch"
2828
timeout-minutes: 45
2929
runs-on: ubuntu-latest
3030
if: github.event_name == 'workflow_dispatch'
@@ -77,6 +77,7 @@ jobs:
7777
--conductor ${GITHUB_ACTOR}
7878
7979
backport:
80+
name: "Create backport"
8081
timeout-minutes: 45
8182
runs-on: ubuntu-latest
8283
environment: Automation

‎pr-checks/excluded.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ contains:
55
- "test-setup-python-scripts"
66
- "update"
77
- "Update"
8+
# Matrix-ed job; the name starts with this
9+
- "Create backport"
810
is:
911
- "Agent"
1012
- "check-expected-release-files"
@@ -15,4 +17,6 @@ is:
1517
- "Label PR with size"
1618
- "Post repo size comment"
1719
- "Prepare"
20+
- "Release info"
1821
- "Upload results"
22+
- "Update release branch"

0 commit comments

Comments
 (0)