Skip to content

Commit 07f27f9

Browse files
committed
GH Actions/update-website: fix workflow
Follow up on PR 999, which broke the workflow for submitting a PR when a new release is tagged.
1 parent 74d1648 commit 07f27f9

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
@@ -97,7 +97,7 @@ jobs:
9797
id: get_pr_info
9898
env:
9999
REF_NAME: ${{ github.ref_name }}
100-
TAG_NAME: ${{ github.event.release.tag_name }}
100+
TAG_NAME: ${{ github.event.push.ref }}
101101
run: |
102102
if [ "${{ github.event_name }}" == "pull_request" ]; then
103103
echo "REF=$REF_NAME" >> "$GITHUB_OUTPUT"
@@ -124,6 +124,7 @@ jobs:
124124
path: artifacts
125125

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

0 commit comments

Comments
 (0)