Skip to content

Commit ff7d1c2

Browse files
silehtclaude
andauthored
fix: use git-refs-detection instead of scopes-detection for scopes-upload (#138)
The scopes-upload action only needs git refs (base/head), not the full scopes detection. Move scopes-upload to use the git-refs-detection step and update its output references accordingly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8107c0a commit ff7d1c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ runs:
8181
mergify ci junit-process ${FILES}
8282
8383
- name: Detect head sha and base sha
84-
if: inputs.action == 'scopes-git-refs'
84+
if: inputs.action == 'scopes-git-refs' || inputs.action == 'scopes-upload'
8585
id: git-refs-detection
8686
shell: bash
8787
run: mergify ci git-refs
8888

8989
- name: Detect scopes, head sha and base sha
90-
if: inputs.action == 'scopes' || inputs.action == 'scopes-upload'
90+
if: inputs.action == 'scopes'
9191
id: scopes-detection
9292
shell: bash
9393
run: mergify ci scopes --write $RUNNER_TEMP/mergify-scopes.json
@@ -97,8 +97,8 @@ runs:
9797
if: inputs.action == 'scopes-upload'
9898
env:
9999
SCOPES: ${{ inputs.scopes }}
100-
BASE: ${{ steps.scopes-detection.outputs.base }}
101-
HEAD: ${{ steps.scopes-detection.outputs.head }}
100+
BASE: ${{ steps.git-refs-detection.outputs.base }}
101+
HEAD: ${{ steps.git-refs-detection.outputs.head }}
102102
run: |
103103
set -euo pipefail
104104
FILE="$RUNNER_TEMP/mergify-scopes.json"

0 commit comments

Comments
 (0)