Skip to content

feat: remove requiring ref in action/checkout #446

feat: remove requiring ref in action/checkout

feat: remove requiring ref in action/checkout #446

Workflow file for this run

name: Commit Check
on:
pull_request:
branches: 'main'
workflow_dispatch:
jobs:
commit-check:
runs-on: ubuntu-latest
permissions: # use permissions because of use pr-comments
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # Required for merge-base checks
- uses: ./ # self test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed for PR comments
with:
message: true
branch: true
author-name: true
author-email: true
job-summary: true
pr-comments: ${{ github.event_name == 'pull_request' }}