I definitely know how to use secrets properly #302
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push] | ||
name: Commit preview | ||
jobs: | ||
build-website: | ||
uses: ./.github/workflows/build-website.yml | ||
publish: | ||
uses: ./.github/workflows/publish.yml | ||
needs: build-website | ||
secrets: inherit | ||
comment-on-commit: | ||
name: Add a comment on the commit | ||
runs-on: ubuntu-latest | ||
needs: build-website | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Comment on the Comment | ||
if: ${{ secrets.COZY_PAT }} != '' | ||
Check failure on line 21 in .github/workflows/commit-preview.yaml GitHub Actions / Commit previewInvalid workflow file
|
||
uses: peter-evans/commit-comment@5a6f8285b8f2e8376e41fe1b563db48e6cf78c09 # v3.0.0 | ||
with: | ||
token: ${{ secrets.COZY_PAT }} | ||
repository: ${{ github.repository }} | ||
sha: ${{ github.sha }} | ||
body: "See preview on Cloudflare Pages: ${{ needs.publish.output.deployment-url }}" |