Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.24 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.24 KB

Reusable workflows for GitHub Actions

See the docs at https://docs.github.com/en/actions/learn-github-actions/reusing-workflows

Working at 84codes? Please note that this repository is public!


Example workflows

Ruby CI

See ruby-ci.yml for all inputs supported by the workflow.

name: CI

on:
  push:
  pull_request:
  workflow_dispatch:

jobs:
  test:
    uses: 84codes/actions/.github/workflows/ruby-ci.yml@main
    with:
      ruby-lint: true # needs both "github-token" and "repo-github-token" secrets
    secrets:
      repo-github-token: ${{ secrets.GITHUB_TOKEN }} # if project uses ruby-lint
      github-token: ${{ secrets.ORG_GITHUB_TOKEN_FOR_CI }} # if project uses private GitHub repos dependencies
      pkg-github-com: ${{ secrets.PACKAGES_PAT }} # if project uses private GitHub Packages

Heroku deploy

heroku-app is optional, uses the repo name by default.

name: Deploy to Heroku

on:
  workflow_run:
    workflows: [CI]
    types: [completed]

jobs:
  heroku:
    uses: 84codes/actions/.github/workflows/heroku.yml@main
    with:
      heroku-app: myapp
    secrets:
      heroku-key: ${{ secrets.HEROKU_API_KEY }}