Skip to content

ohmycheatsheet/actions-friday

Repository files navigation

@omcs/actions-friday

omcs-bot-banner

Usage

  1. Create a .github/workflows/friday.yml file in your GitHub repo.
  2. 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 }}
  1. Create SLACK_WEBHOOK secret using GitHub Action's Secret. You can generate a Slack incoming webhook token from here.

Variables

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

Develop

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.

About

F.R.I.D.A.Y - Ohmycheatsheet Assistant Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published