Ghost/.github/workflows/auto-assign.yml
Daniel Lockyer 264678e9be
Prevented certain GitHub Actions workflows from running on forks
fixes https://github.com/TryGhost/Toolbox/issues/285

- without this, some of the workflows that are only useful for the core
  team will run on forks
- this commit adds checks to ensure we're running on a repo maintained
  by the TryGhost organization for a handful of workflows
2022-06-01 17:54:26 -04:00

16 lines
372 B
YAML

name: Auto Assign
on:
pull_request:
types: [opened, reopened]
jobs:
automate:
runs-on: ubuntu-18.04
if: github.repository_owner == 'TryGhost'
env:
FORCE_COLOR: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- run: gh extension install daniellockyer/gh-auto-assign
- run: gh auto-assign