fix: variable syntax & pass version to release-close-issue

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
This commit is contained in:
Wing-Kam Wong
2022-02-17 12:16:48 +08:00
parent e2aa54701f
commit bb7f3e38c4

View File

@@ -12,38 +12,39 @@ on:
required: true
jobs:
# Close all issues with target tags 'Fixed' & 'Resolved'
# TODO: add 'Fixed in vX.Y.Z' comment after closing.
close-fixed-issues:
needs: release-npm
uses: ./.github/workflows/release-close-issue.yml
with:
issue_label: 'Fixed'
version: ${{ github.event.inputs.tag }}
close-resolved-issues:
needs: close-fixed-issues
uses: ./.github/workflows/release-close-issue.yml
with:
issue_label: 'Resolved'
version: ${{ github.event.inputs.tag }}
# Build, install, publish frontend and backend to npm
release-npm:
uses: ./.github/workflows/release-npm.yml
with:
tag: tag
tag: ${{ github.event.inputs.tag }}
# Draft Release Note
release-draft-note:
needs: close-issues
uses: ./.github/workflows/release-draft.yml
with:
tag: tag
prev_tag: prev_tag
tag: ${{ github.event.inputs.tag }}
prev_tag: ${{ github.event.inputs.prev_tag }}
# Build docker image and push to docker hub
release-docker:
needs: release-draft-note
uses: ./.github/workflows/release-docker.yml
with:
tag: tag
tag: ${{ github.event.inputs.tag }}
# Sync changes to develop
sync-to-develop: