This repo is collection some GitHub Actions.
Recommend use gh download
1 command.
gh dl https://github.com/yuler/actions/blob/main/nodejs/ci.yml --outdir .github/workflows
Related:
gh dl https://github.com/yuler/actions/blob/main/nodejs/npm-publish.yml --outdir .github/workflows
# Add NPM_TOKEN secret from `~/.npmrc`
gh alias set add-npm-token "secret set NPM_TOKEN --body "$(cat ~/.npmrc | grep _authToken | sed 's/\/\/registry.npmjs.org\/:_authToken=//')""
gh add-npm-token
Related:
gh dl https://github.com/yuler/actions/blob/main/miniprogram/miniprogram-upload.yml --outdir .github/workflows
gh secret set MINIPROGRAM_APP_ID <$appId>
gh secret set MINIPROGRAM_PRIVATE_KEY < apps/mini/private.<$appId>.key
gh dl https://github.com/yuler/actions/blob/main/misc/sync-gitlab.yml --outdir .github/workflows
gh secret set GITLAB_TOKEN <$YOUR_GITLAB_TOKEN>
gh dl https://github.com/yuler/actions/blob/main/misc/cron.yml --outdir .github/workflows
gh secret set GITLAB_TOKEN <$YOUR_GITLAB_TOKEN>
Related:
Recommend use release-drafter action.
gh dl https://github.com/yuler/actions/blob/main/misc/drafter.yml --outdir .github/workflows
gh dl https://github.com/yuler/actions/blob/main/misc/release-drafter.yml --outdir .github
Note Must first have the configuration file in the default branch
Related:
- Awesome Actions
- Act - Run your GitHub Actions locally
gh dl https://github.com/yuler/actions/blob/main/rails/ci.yml --outdir .github/workflows
Footnotes
-
The
gh download
command is come from gh-download ↩