chore: upgrade Terraform to 1.9.5 #273
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Add Copyright Headers" | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
concurrency: ${{ github.workflow }}-${{ github.head_ref }} | |
jobs: | |
add-copyright-headers: | |
runs-on: ubuntu-latest | |
env: | |
PULL_REQUEST_REF: ${{ github.event.pull_request.head.ref }} | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Set git identity | |
run: |- | |
git config user.name "team-tf-cdk" | |
git config user.email "[email protected]" | |
- name: Setup Copywrite tool | |
uses: hashicorp/setup-copywrite@32638da2d4e81d56a0764aa1547882fc4d209636 # v1.1.3 | |
- name: Add headers using Copywrite tool | |
run: copywrite headers | |
- name: Check if there are any changes | |
id: get_changes | |
run: echo "changed=$(git status --porcelain | wc -l)" >> $GITHUB_OUTPUT | |
- name: Push changes | |
if: steps.get_changes.outputs.changed != 0 | |
run: |- | |
git add . | |
git commit -s -m "chore: add required copyright headers" | |
git push origin HEAD:$PULL_REQUEST_REF |