20 lines
818 B
YAML
20 lines
818 B
YAML
name: Add Copyright Headers
|
|
on: pull_request
|
|
jobs:
|
|
copywrite:
|
|
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
# Ref and repository aren't normally needed, this is a workaround for a bug in auto commit
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.ref }}
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
- uses: hashicorp/setup-copywrite@32638da2d4e81d56a0764aa1547882fc4d209636 # v1.1.3
|
|
- name: Add missing Copyright Headers
|
|
run: copywrite headers
|
|
- uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
|
|
with:
|
|
commit_message: Add missing copyright headers
|