File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 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 .
Original file line number Diff line number Diff line change 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 : |
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 .
You can’t perform that action at this time.
0 commit comments