Skip to content

Commit ab87da0

Browse files
New: [AEA-5985] - Outputs Next Tag and Workflow ID (#30)
## Summary - Routine Change ### Details Ouputs Next Tag and Workflow ID from tag release
1 parent c7e9c61 commit ab87da0

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/tag-release.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ on:
5151
change_set_version:
5252
description: "The change set version for deployments"
5353
value: ${{ jobs.tag_release.outputs.change_set_version }}
54+
next_version_tag:
55+
description: "The next version tag that will be created"
56+
value: ${{ jobs.tag_release.outputs.next_version_tag }}
5457
secrets:
5558
NPM_TOKEN:
5659
required: false
@@ -173,6 +176,7 @@ jobs:
173176
outputs:
174177
version_tag: ${{steps.output_version_tag.outputs.VERSION_TAG}}
175178
change_set_version: ${{ steps.output_change_set_version.outputs.CHANGE_SET_VERSION }}
179+
next_version_tag: ${{ steps.output_version_tag.outputs.NEXT_VERSION_TAG }}
176180
steps:
177181
- name: Fetch asdf artifact
178182
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
@@ -251,11 +255,11 @@ jobs:
251255
if: ${{ inputs.extra_artifact_name != '' }}
252256
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
253257
with:
254-
artifact-ids: ${{ inputs.extra_artifact_id }}
255-
github-token: ${{ secrets.GITHUB_TOKEN }}
256-
repository: ${{ inputs.extra_artifact_repository }}
257-
run-id: ${{ inputs.extra_artifact_run_id }}
258-
258+
artifact-ids: ${{ inputs.extra_artifact_id }}
259+
github-token: ${{ secrets.GITHUB_TOKEN }}
260+
repository: ${{ inputs.extra_artifact_repository }}
261+
run-id: ${{ inputs.extra_artifact_run_id }}
262+
259263
- name: Set VERSION_TAG based on dry_run flag
260264
id: output_version_tag
261265
run: |
@@ -304,6 +308,7 @@ jobs:
304308
fi
305309
echo "VERSION_TAG=${VERSION_TAG}" >> "$GITHUB_OUTPUT"
306310
echo "VERSION_TAG=${VERSION_TAG}" >> "$GITHUB_ENV"
311+
echo "NEXT_VERSION_TAG=${NEW_VERSION_TAG}" >> "$GITHUB_OUTPUT"
307312
env:
308313
GITHUB_TOKEN: ${{ github.token }}
309314
BRANCH_NAME: ${{ inputs.branch_name }}
@@ -345,7 +350,7 @@ jobs:
345350
body: |
346351
## Info
347352
[See code diff](${{ github.event.compare }})
348-
[Release workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
353+
[Release workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - Workflow ID: ${{ github.run_id }}
349354
350355
It was initialized by [${{ github.event.sender.login }}](${{ github.event.sender.html_url }})
351356

0 commit comments

Comments
 (0)