Skip to content

Commit

Permalink
[R] Revert "Update preview.yml"
Browse files Browse the repository at this point in the history
This reverts commit f8f7e1a.
  • Loading branch information
LS-KR committed Feb 9, 2025
1 parent 9a6b94e commit b66f206
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
pr_number:
description: 'Pull Request number to deploy preview for'
required: true
pr_branch:
description: 'The branch name to deploy'
required: true

jobs:
build:
Expand All @@ -30,15 +33,17 @@ jobs:
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "PR_NUMBER=${{ github.event.inputs.pr_number }}" >> $GITHUB_ENV
echo "PR_BRANCH=${{ github.event.inputs.pr_branch }}" >> $GITHUB_ENV
else
echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
echo "PR_BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
fi
# Now check out the PR’s head branch (whether from a PR event or supplied manually)
- name: Checkout PR branch
uses: actions/checkout@v4
with:
ref: "refs/pull/${{ env.PR_NUMBER }}/merge"
ref: ${{ env.PR_BRANCH }}

- name: Setup Node.js
uses: actions/setup-node@v4
Expand Down

0 comments on commit b66f206

Please sign in to comment.