Skip to content

Commit d3688c0

Browse files
authored
Merge pull request #1016 from WordPress/feature/ghactions-fix-update-website-workflow
2 parents 01df92d + 69ed1e7 commit d3688c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/update-website.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
id: get_pr_info
100100
env:
101101
REF_NAME: ${{ github.ref_name }}
102-
TAG_NAME: ${{ github.event.release.tag_name }}
102+
TAG_NAME: ${{ github.event.push.ref }}
103103
run: |
104104
if [ "${{ github.event_name }}" == "pull_request" ]; then
105105
echo "REF=$REF_NAME" >> "$GITHUB_OUTPUT"
@@ -126,6 +126,7 @@ jobs:
126126
path: artifacts
127127

128128
- name: Create the new branch
129+
if: github.event_name == 'pull_request'
129130
env:
130131
REF_NAME: feature/auto-ghpages-update-${{ steps.get_pr_info.outputs.REF }}
131132
run: git checkout -b "$REF_NAME"

0 commit comments

Comments
 (0)