This repository was archived by the owner on Feb 21, 2025. It is now read-only.
consecration #74
Workflow file for this run
This file contains hidden or 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 | |
on: | |
# push: | |
# branches: [main] | |
pull_request: | |
types: | |
- closed | |
env: | |
HEAD_REF: ${{ github.head_ref }} | |
REF_NAME: ${{ github.ref_name }} | |
jobs: | |
print-branch-name: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Print the head ref env variable | |
run: echo "$HEAD_REF" | |
- name: Print the ref name | |
run: echo "$REF_NAME" | |
- name: Extract branch name | |
shell: bash | |
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | |
id: extract_branch |