-
Notifications
You must be signed in to change notification settings - Fork 21
32 lines (27 loc) · 929 Bytes
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: PR
on: pull_request
permissions: read-all
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Tag Terraform
uses: ./
with:
commit_changes: false
directory: tests/terraform
output_format: json
- name: Check tags applied
run: |
grep -F "git_commit" tests/terraform/main.tf
grep -F "git_file" tests/terraform/main.tf
grep -F "git_last_modified_at" tests/terraform/main.tf
grep -F "git_last_modified_by" tests/terraform/main.tf
grep -F "git_modifiers" tests/terraform/main.tf
grep -F "git_org" tests/terraform/main.tf
grep -F "git_repo" tests/terraform/main.tf
grep -F "yor_trace" tests/terraform/main.tf