Skip to content

Commit

Permalink
test: fix the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
f-hollow committed Dec 10, 2024
1 parent 9176e2e commit 2fafd7e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/pr-deploy-preview-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
pull-requests: write

env:
HUGO_BASEURL: "https://preview-developer.espressif.com/pr${{ github.event.workflow_run.pull_requests[0].number }}/"
HUGO_BASEURL: "https://preview-developer.espressif.com/pr${{ github.event.pull_request.number }}/" # Use pull_request directly

jobs:
deploy-preview:
Expand All @@ -19,8 +19,7 @@ jobs:
steps:
- name: Debug: List workflow details
run: |
echo "Workflow name: ${{ github.event.workflow_run.name }}"
echo "Pull request: ${{ github.event.workflow_run.pull_requests[0].number }}"
echo "Pull request number: ${{ github.event.pull_request.number }}"
- name: Download artifacts
uses: actions/download-artifact@v3
Expand Down

0 comments on commit 2fafd7e

Please sign in to comment.