Publish Release #110
Workflow file for this run
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: Publish Release | |
# Every time we trigger the workflow on a branch. | |
on: | |
workflow_dispatch: | |
jobs: | |
publish_draft_release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Print Environment Variable | |
env: | |
BRANCH_NAME: ${{ github.ref_name }} | |
run: | | |
echo "The value of BRANCH_NAME is: ${{ env.BRANCH_NAME }}" | |
# Do we really want to delete the branch? What if a tag is on a commit which is not on the default branch? | |
remove_release_branch: | |
runs-on: ubuntu-latest | |
needs: publish_draft_release | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dawidd6/action-delete-branch@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH_NAME: ${{ github.ref_name }} | |
with: | |
github_token: ${{ env.GITHUB_TOKEN }} | |
branches: ${{ env.BRANCH_NAME }} |