File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 75
75
run : |
76
76
dotnet build Libraries/Libraries.sln -c Release
77
77
git add "*.template"
78
- git commit -m "Update test app CloudFormation templates"
78
+
79
+ if git diff --cached --quiet; then
80
+ echo "No .template files were staged; skipping commit."
81
+ else
82
+ git commit -m "Update test app CloudFormation templates"
83
+ fi
79
84
# Update the changelog based on the change files
80
85
- name : Update Changelog
81
86
run : autover changelog
99
104
echo "CHANGELOG<<EOF"$'\n'"$changelog"$'\n'EOF >> "$GITHUB_OUTPUT"
100
105
# Create the Release PR and label it
101
106
- name : Create Pull Request
102
- env :
103
- GITHUB_TOKEN : ${{ env.AWS_SECRET_TOKEN }}
104
- run : |
105
- pr_url="$(gh pr create --title "${{ steps.read-release-name.outputs.VERSION }}" --body "${{ steps.read-changelog.outputs.CHANGELOG }}" --base dev --head ${{ steps.create-release-branch.outputs.BRANCH }})"
106
- gh label create "Release PR" --description "A Release PR that includes versioning and changelog changes" -c "#FF0000" -f
107
- gh pr edit $pr_url --add-label "Release PR"
107
+ env :
108
+ GITHUB_TOKEN : ${{ env.AWS_SECRET_TOKEN }}
109
+ run : |
110
+ pr_url="$(gh pr create --title "${{ steps.read-release-name.outputs.VERSION }}" --body "${{ steps.read-changelog.outputs.CHANGELOG }}" --base dev --head ${{ steps.create-release-branch.outputs.BRANCH }})"
111
+ gh label create "Release PR" --description "A Release PR that includes versioning and changelog changes" -c "#FF0000" -f
112
+ gh pr edit $pr_url --add-label "Release PR"
You can’t perform that action at this time.
0 commit comments