Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adobe-rnd/github-purge-cache-action
https://github.com/adobe-rnd/github-purge-cache-action
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/adobe-rnd/github-purge-cache-action
- Owner: adobe-rnd
- License: apache-2.0
- Created: 2020-10-02T16:41:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-24T07:41:58.000Z (4 days ago)
- Last Synced: 2025-01-24T08:28:19.347Z (4 days ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 0
- Watchers: 5
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Github Trigger CI Action
Purges the helix pages cache on push.
## Inputs
### `repo-token`
**Required** A github token to issue the dummy commit.
### `helix-url`
**Optional** Base url of the helix pages instance. Uses
`ref--repo--owner.hlx.page` by default.## Example usage
Add a yaml file with the following contents inside .github/workflows, as
described in [github actions quick
start](https://docs.github.com/en/free-pro-team@latest/actions/quickstart).```yaml
on: pushjobs:
ci_trigger:
runs-on: ubuntu-latest
name: Clear helix pages cache
steps:
- name: Trigger
id: trigger
uses: adobe-rnd/github-purge-cache-action@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
```# Development
Please run the build script before release to regenerate dist/index.html
```sh-session
$ npm run build
$ git commit -am "..."
$ git push
```