- Create a
.github/workflows/friday.yml
file in your GitHub repo. - Add the following code to the
friday.yml
file.
name: friday
on:
schedule:
- cron: "0 11 * * *"
name: friday
jobs:
someday:
name: Someday
runs-on: ubuntu-latest
steps:
- uses: ohmycheatsheet/actions-friday@v1
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- Create
SLACK_WEBHOOK
secret using GitHub Action's Secret. You can generate a Slack incoming webhook token from here.
name | description | required | type |
---|---|---|---|
GITHUB_TOKEN | (env)repo token | true | string |
SLACK_WEBHOOK | (env)slack webhook url | true | string |
CHEATSHEET_HOST | (input)cheatsheet website homepage, in default come from repo homepage | false | string |
SLACK_CHANNEL | (input)slack channel | false | string |
debug | (input)log flag | false | boolean |
Users shouldn't consume the action from master since that would be latest code and actions can break compatibility between major versions.
Checkin to the v1 release branch
pnpm run prepare
ga .
gpsup
Your action is now published! 🚀
See the versioning documentation, the toolkit documentation for the various packages.