mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Fix branch name detection
This commit is contained in:
parent
f5514b419a
commit
4b61e0d80c
1 changed files with 8 additions and 3 deletions
11
.github/workflows/pr.yaml
vendored
11
.github/workflows/pr.yaml
vendored
|
@ -35,9 +35,14 @@ jobs:
|
|||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.PAT_TOKEN }}
|
||||
- name: Get current branch name
|
||||
id: get_branch
|
||||
run: echo "branch_name=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
|
||||
- name: Determine the branch name
|
||||
id: determine_branch
|
||||
run: |
|
||||
if [ "${{ github.event_name }}" == "pull_request" ]; then
|
||||
echo "branch_name=${{ github.head_ref }}" >> $GITHUB_ENV
|
||||
else
|
||||
echo "branch_name=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Replace / with - in branch name
|
||||
id: replace_slash
|
||||
|
|
Loading…
Add table
Reference in a new issue