pages/action.yml
2023-07-09 14:31:18 +09:00

31 lines
1.4 KiB
YAML

name: 'Online Code Pages'
description: 'Place the code in Pages.'
inputs:
ref:
description: >
The branch, tag or SHA to deployment. When checking out the repository that
triggered a workflow, this defaults to the reference or SHA for that
event. Otherwise, uses the default branch.
default: ${{ gitea.sha }}
token:
description: >
Personal access token (PAT) used to fetch the repository. The PAT is configured
with the local git config, which enables your scripts to run authenticated git
commands. The post-job step removes the PAT.
We recommend using a service account with the least permissions necessary.
Also when generating a new PAT, select the least scopes necessary.
[Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
default: ${{ gitea.token }}
pages-url:
description: The base URL for the Online Code Pages instance that you are trying to clone from, will use environment defaults to fetch from the same instance that the workflow is running from unless specified. Example URLs are https://pages.wikiwiki.li/ or https://my-pages.example.com/
default: https://pages.wikiwiki.li/
remove:
description: Remove placed codes.
default: false
runs:
using: node16
main: index.js