Skip to content

Commit adb3e93

Browse files
committed
ci: fix setting major version tag
Part of #275.
1 parent c5fecae commit adb3e93

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/release.main.kts

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ workflow(
5656

5757
val MAJOR_VERSION_OUTPUT_NAME = "majorVersion"
5858

59-
val extractMajorVersion = run {
59+
val extractMajorVersion = run(
60+
name = "Extract major version",
61+
workingDirectory = "github-actions-typing",
62+
) {
6063
// There should be a way to access the inputs using the DSL.
6164
// TODO: https://github.com/typesafegithub/github-workflows-kt/issues/1685
6265
val githubContextJson = System.getenv("GHWKT_GITHUB_CONTEXT_JSON")!!

.github/workflows/release.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ jobs:
7777
git tag -a "${{ github.event.inputs.version }}" -m "Release version ${{ github.event.inputs.version }}"
7878
git push origin "${{ github.event.inputs.version }}"
7979
- id: 'step-9'
80+
name: 'Extract major version'
8081
env:
8182
GHWKT_GITHUB_CONTEXT_JSON: '${{ toJSON(github) }}'
83+
working-directory: 'github-actions-typing'
8284
run: 'GHWKT_RUN_STEP=''release:step-9'' ''.github/workflows/release.main.kts'''
8385
- id: 'step-10'
8486
name: 'Create or update a major version branch'

0 commit comments

Comments
 (0)