Skip to content

Commit 6000bac

Browse files
workflows
1 parent 06717ac commit 6000bac

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/create-root-readme.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ jobs:
3939
env:
4040
GITHUB_TOKEN: ${{ steps.token-generation.outputs.token }}
4141
run: |
42+
diff=$(git status)
43+
echo "$diff"
44+
if [[ -z "$diff" ]]; then
45+
echo "No changes to commit"
46+
exit 0
47+
fi
4248
git config user.name 'github-actions-bot'
4349
git config user.email 'actions@github.com'
4450
git add .

.github/workflows/terraform-fmt.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set up Terraform
3434
uses: hashicorp/setup-terraform@v2
3535
with:
36-
terraform_version: 1.7.6
36+
terraform_version: 1.6.0
3737

3838
- name: Run the tree generation script
3939
run: |
@@ -43,6 +43,12 @@ jobs:
4343
env:
4444
GITHUB_TOKEN: ${{ steps.token-generation.outputs.token }}
4545
run: |
46+
diff=$(git status)
47+
echo "$diff"
48+
if [[ -z "$diff" ]]; then
49+
echo "No changes to commit"
50+
exit 0
51+
fi
4652
git config user.name 'github-actions-bot'
4753
git config user.email 'actions@github.com'
4854
git add .

0 commit comments

Comments
 (0)