Skip to content

Commit 0dd6a4c

Browse files
🔄 synced local '.github/workflows/automerge.yml' with remote '.github/workflows/automerge.yml' (#19)
1 parent 7f5a9e5 commit 0dd6a4c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎.github/workflows/automerge.yml‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ jobs:
6666
run: |
6767
PR=`gh pr view ${{ github.event.inputs.pr_number }} --json isDraft,author,labels,headRefName,baseRefName`
6868
69-
echo "draft=`echo ${PR} | jq -r '.isDraft'`" >> $GITHUB_OUTPUT
70-
echo "user_login=`echo ${PR} | jq -r '.author.login'`" >> $GITHUB_OUTPUT
71-
echo "labels=`echo ${PR} | jq -r '.labels | map(.name) | join(",")'`" >> $GITHUB_OUTPUT
72-
echo "head_ref=`echo ${PR} | jq -r '.headRefName'`" >> $GITHUB_OUTPUT
73-
echo "base_ref=`echo ${PR} | jq -r '.baseRefName'`" >> $GITHUB_OUTPUT
69+
echo "draft=`echo ${PR} | jq -r '.isDraft'`" >> "$GITHUB_OUTPUT"
70+
echo "user_login=`echo ${PR} | jq -r '.author.login'`" >> "$GITHUB_OUTPUT"
71+
echo "labels=`echo ${PR} | jq -r '.labels | map(.name) | join(",")'`" >> "$GITHUB_OUTPUT"
72+
echo "head_ref=`echo ${PR} | jq -r '.headRefName'`" >> "$GITHUB_OUTPUT"
73+
echo "base_ref=`echo ${PR} | jq -r '.baseRefName'`" >> "$GITHUB_OUTPUT"
7474
7575
- name: "📥 Checkout PR Code"
7676
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
@@ -87,7 +87,7 @@ jobs:
8787
# Get the merge base to determine the changes made in the PR compared to when it was branched from the
8888
# default branch, instead of the diff to the default branch.
8989
mergeBase=`git merge-base origin/${{ steps.pr-info.outputs.base_ref }} HEAD`
90-
echo "merge_base=${mergeBase}" >> $GITHUB_OUTPUT
90+
echo "merge_base=${mergeBase}" >> "$GITHUB_OUTPUT"
9191
9292
outputs:
9393
draft: ${{ steps.pr-info.outputs.draft }}
@@ -124,7 +124,7 @@ jobs:
124124
echo "❌ No automerge secret found - automerge disabled"
125125
else
126126
echo "âś… Automerge secret available"
127-
echo "can_automerge=true" >> $GITHUB_OUTPUT
127+
echo "can_automerge=true" >> "$GITHUB_OUTPUT"
128128
fi
129129
130130
- name: "🔄 Wait for calling workflow to be ready"
@@ -159,7 +159,7 @@ jobs:
159159
steps.check-all.outcome == 'success'
160160
run: |
161161
echo "âś… All checks passed - automerge enabled"
162-
echo "can_automerge=true" >> $GITHUB_OUTPUT
162+
echo "can_automerge=true" >> "$GITHUB_OUTPUT"
163163
164164
outputs:
165165
can_automerge: ${{ steps.check-secret.outputs.can_automerge && steps.check-failure.outputs.can_automerge }}
@@ -198,12 +198,12 @@ jobs:
198198
echo "🔍 Checking dependency changes in go.mod..."
199199
if git diff --quiet ${{ needs.pr_info.outputs.merge_base }} -- 'go.mod'; then
200200
echo "ℹ️ No changes in go.mod - automerge not enabled. Requires manual review"
201-
echo "can_automerge=false" >> $GITHUB_OUTPUT
201+
echo "can_automerge=false" >> "$GITHUB_OUTPUT"
202202
elif git diff --quiet -G "github.com/PaddleHQ/" ${{ needs.pr_info.outputs.merge_base }} -- go.mod; then
203203
echo "⚠️ No PaddleHQ dependencies updated - automerge not enabled. Requires manual review"
204204
else
205205
echo "âś… PaddleHQ dependencies updated - automerge enabled"
206-
echo "can_automerge=true" >> $GITHUB_OUTPUT
206+
echo "can_automerge=true" >> "$GITHUB_OUTPUT"
207207
fi
208208
209209
outputs:
@@ -244,7 +244,7 @@ jobs:
244244
# Check if only safe files were modified (workflows and dependabot config)
245245
if git diff --quiet ${{ needs.pr_info.outputs.merge_base }} -- ':!.github/actions' ':!.github/workflows' ':!.github/dependabot.yml' ':!.github/pull_request_template.md' ':!.github/release.yml'; then
246246
echo "âś… Only safe template files modified (workflows/dependabot) - automerge enabled"
247-
echo "can_automerge=true" >> $GITHUB_OUTPUT
247+
echo "can_automerge=true" >> "$GITHUB_OUTPUT"
248248
else
249249
echo "⚠️ Updates to non-standard files - automerge not enabled. Requires manual review"
250250
fi
@@ -295,7 +295,7 @@ jobs:
295295
echo "⚠️ Files deleted - automerge not enabled. Needs manual review"
296296
else
297297
echo "âś… No files deleted (only additions/modifications) - automerge enabled"
298-
echo "can_automerge=true" >> $GITHUB_OUTPUT
298+
echo "can_automerge=true" >> "$GITHUB_OUTPUT"
299299
fi
300300
301301
outputs:

0 commit comments

Comments
 (0)