create_tag #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'create_tag' | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: 'The name of the tag to be created.' | |
type: 'string' | |
required: true | |
annotated_tag: | |
description: 'The name of the tag to be created.' | |
type: 'boolean' | |
required: false | |
branch: | |
description: 'branch' | |
type: 'string' | |
default: 'main' | |
required: true | |
message: | |
description: 'Message for the tag. Default is the tag name.' | |
type: 'string' | |
required: false | |
jobs: | |
# print-inputs: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: job summary | |
# run: | | |
# echo "### Inputs" >> $GITHUB_STEP_SUMMARY | |
# echo "- tag: ${{ inputs.tag }}" >> $GITHUB_STEP_SUMMARY | |
# echo "- branch: ${{ github.event.repository.default_branch }}" >> $GITHUB_STEP_SUMMARY | |
# echo "- annotated tag: true" >> $GITHUB_STEP_SUMMARY | |
# echo "- message: ${{ inputs.message || inputs.tag }}" >> $GITHUB_STEP_SUMMARY | |
create_tag: | |
# needs: 'print-inputs' | |
permissions: | |
contents: 'write' | |
uses: 'sqin2019/access-on-demand-fork/.github/workflows/reusable_create_tag.yml@main' | |
# uses: 'abcxyz/access-on-demand/.github/workflows/clicleanup.yml@main' | |
with: | |
branch: '${{ inputs.branch }}' | |
tag: '${{ inputs.tag }}' | |
message: ${{ inputs.message }} | |
env: 'tag' | |
annotated_tag: '${{ inputs.annotated_tag }}' | |
# print-outputs: | |
# runs-on: ubuntu-latest | |
# needs: 'create_tag' | |
# steps: | |
# - name: job summary | |
# run: | | |
# echo "### outputs" >> $GITHUB_STEP_SUMMARY | |
# echo "result: ${{ needs.create_tag.outputs.result }}" >> $GITHUB_STEP_SUMMARY |