GitHub Action
Confirm Checks
v1.0.1
Latest version
This action will send a nice deploy message in slack, including:
- Listing the commits between what's on the service and what you're deploying
- Pinging the authors of the commits via slack in the message
- uses: maael/confirm-checks-action
with:
github_token: ${{secrets.GH_PAT_TOKEN}}
commit: '25e6c46a48a3052c27b8f35e2e3cd513193ce9a8'
repo: 'ThreadsStyling/web-app-next-template'
checks: 'Deploy Staging,CI Checks'
inputs:
github_token:
required: true
description: 'GitHub token'
commit:
description: 'The commit sha to use as the HEAD, defaults to the current sha'
repo:
description: 'The repo in form OWNER/NAME to use, defaults to current'
checks:
description: 'The checks to confirm, separated by a comma'
required: true
Actions are run from GitHub repos so we will checkin the packed dist folder.
Then run ncc and push the results:
$ npm run package
$ git add dist
$ git commit -a -m "prod dependencies"
$ git tag -fa v1.0.0 -m "v1.0.0"
$ git push --tags
$ git checkout v1
$ git push origin v1 --force
$ git checkout main
Install act via brew.
Then make a copy of the .env.schema
in .env
, and fill it out with the expected environment variables.
You can then run act -j local
.
Make sure to run yarn run build && yarn run package
first to use the latest version of the action.