Skip to content

Commit

Permalink
Correctly pass secrets to publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Southpaw1496 committed Aug 31, 2024
1 parent 5bddda4 commit a90e278
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/commit-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
publish:
uses: ./.github/workflows/publish.yml
needs: build-website
secrets: inherit

comment-on-commit:
name: Add a comment on the commit
Expand All @@ -17,10 +18,10 @@ jobs:
contents: read
steps:
- name: Comment on the Comment
if: env.GITHUB_PUBLISH_TOKEN != ''
if: secrets.COZY_PAT != ''
uses: peter-evans/commit-comment@5a6f8285b8f2e8376e41fe1b563db48e6cf78c09 # v3.0.0
with:
token: ${{ env.GITHUB_PUBLISH_TOKEN }}
token: ${{ secrets.COZY_PAT }}
repository: ${{ github.repository }}
sha: ${{ github.sha }}
body: "See preview on Cloudflare Pages: ${{ needs.publish.output.deployment-url }}"

0 comments on commit a90e278

Please sign in to comment.