Skip to content

Instantly share code, notes, and snippets.

@woozyking
Created December 15, 2022 02:54
Show Gist options
  • Save woozyking/086d3a4cafe58259ecfa632e241860bc to your computer and use it in GitHub Desktop.
Save woozyking/086d3a4cafe58259ecfa632e241860bc to your computer and use it in GitHub Desktop.
name: Main
on:
pull_request:
push:
branches:
- main
jobs:
commit-watch:
runs-on: ubuntu-latest
if: contains(github.event_name, 'pull_request') # only run on pull requests
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # needed for obtaining relevant commit metadata for commit-watch
- run: npx @eqworks/commit-watch -b ${{ github.event.pull_request.base.sha }} -h ${{ github.event.pull_request.head.sha }} -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment