Skip to content

test: add article to test workflows #2

test: add article to test workflows

test: add article to test workflows #2

name: Deploy preview for PR
on:
pull_request:
branches: [develop]
permissions:
contents: read
id-token: write
pull-requests: write
env:
HUGO_BASEURL: "https://preview-developer.espressif.com/pr${{ github.event.workflow_run.pull_requests[0].number }}/"
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Debug: List workflow details

Check failure on line 20 in .github/workflows/pr-deploy-preview-develop.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr-deploy-preview-develop.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
run: |
echo "Workflow name: ${{ github.event.workflow_run.name }}"
echo "Pull request: ${{ github.event.workflow_run.pull_requests[0].number }}"
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: public-folder
path: ./public