We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 218d383 commit 259e418Copy full SHA for 259e418
1 file changed
.github/workflows/deploy.yml
@@ -7,7 +7,6 @@ on:
7
push:
8
branches:
9
- main
10
- # branches that match deploy-* will deploy as well
11
- deploy-*
12
workflow_dispatch:
13
inputs:
@@ -27,7 +26,12 @@ jobs:
27
26
runs-on: ubuntu-latest
28
29
steps:
30
- - uses: actions/checkout@v6
+ - name: Checkout selected branch
+ uses: actions/checkout@v6
31
+ with:
32
+ # If workflow_dispatch, use the selected branch.
33
+ # If push event, use the branch that triggered the workflow.
34
+ ref: ${{ github.event.inputs.branch || github.ref_name }}
35
36
- name: Configure AWS Credentials
37
uses: aws-actions/configure-aws-credentials@v5.1.1
@@ -85,6 +89,7 @@ jobs:
85
89
86
90
echo "Git status after build:"
87
91
git status
92
+ git diff
88
93
94
CHANGES="$(git status --porcelain)"
95
if [ -n "$CHANGES" ]; then
@@ -98,4 +103,3 @@ jobs:
98
103
else
99
104
echo "✅ No uncommitted changes after deploy."
100
105
fi
101
-
0 commit comments