Skip to content

Commit 69ed1e7

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 01df92d commit 69ed1e7

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)