Skip to content

Feat/add workflow preview prs #6

Feat/add workflow preview prs

Feat/add workflow preview prs #6

Workflow file for this run

on:
# Trigger the workflow on push or pull request
pull_request:
types: [opened, synchronize, reopened]
jobs:
comment:
runs-on: ubuntu-latest
env:
HUGO_BASEURL: "https://preview-developer.espressif.com/pr${{ github.event.pull_request.number }}/"
steps:
- uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |

Check failure on line 15 in .github/workflows/pr-post-comment.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr-post-comment.yml

Invalid workflow file

The workflow is not valid. .github/workflows/pr-post-comment.yml (Line: 15, Col: 19): Unrecognized named-value: 'process'. Located at position 1 within expression: process.env.HUGO_BASEURL
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Test comment in PR${{ github.event.pull_request.number }} in ${{ process.env.HUGO_BASEURL }} or ${{ env.HUGO_BASEURL }} or ${{ secrets.HUGO_BASEURL }}!'
})