Testing link-checker-gpt 0.1.0-beta #42
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
name: Example Link Checker Action | |
# As an example, this probably has all the essential elements. We could test it | |
# out straightforwardly in a fork, if forks did netlify builds (sadly there is | |
# no easy way to make that work without additional netlify accounts - we can | |
# try Fermyon Cloud tho, I hear bartholomew docs include a sitemap rhai script) | |
on: [pull_request] | |
jobs: | |
test-action: | |
runs-on: ubuntu-latest | |
steps: | |
# (A checkout is needed for the local test, else you'll see the Error:) | |
# Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under | |
# '/home/runner/work/link-checker-gpt/link-checker-gpt/action'. Did you | |
# forget to run actions/checkout before running your local action? | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Check Links using Link Checker Action | |
uses: ./ # say instead "uses: kingdonb/link-checker-gpt@main" or @v1 | |
with: | |
productionDomain: fluxcd.io | |
previewDomain: deploy-preview-1573--fluxcd.netlify.app # usually: deploy-preview-${{ github.event.pull_request.number }}--fluxcd.netlify.app | |
prNumber: 1573 # usually set this to: ${{ github.event.pull_request.number}} | |
githubToken: ${{ secrets.GITHUB_TOKEN }} # pass a github token so we can comment, check status |