Skip to content

Commit 882ec62

Browse files
ralyodioclaude
andcommitted
fix(ci): repair broken submit-packages workflow YAML
Previous semgrep-fix commit (600defe) on this workflow merged the shell-script body into the env: block and left a second env: block behind, so the YAML didn't parse and every push triggered an auto-failing "workflow file issue" run. - Collapse the duplicated env: blocks into one (VERSION/PMS/DRY_RUN plus GITHUB_TOKEN/AUR_SSH_KEY/GPG_PRIVATE_KEY/GPG_PASSPHRASE) - Add the missing `run: |` separator before the shell script Verified with `python3 -c "yaml.safe_load(...)"`; all four release workflows (submit-packages, desktop-release, mobile-release, npm-publish) parse clean. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent aff7319 commit 882ec62

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/submit-packages.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ jobs:
106106
VERSION: ${{ steps.version.outputs.version }}
107107
PMS: ${{ steps.pms.outputs.package_managers }}
108108
DRY_RUN: ${{ github.event.inputs.dry_run }}
109-
109+
GITHUB_TOKEN: ${{ secrets.PKG_SUBMIT_TOKEN || secrets.GITHUB_TOKEN }}
110+
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
111+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
112+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
113+
run: |
110114
ARGS="-v $VERSION"
111115
112116
for PM in $(echo "$PMS" | tr ',' ' '); do
@@ -119,11 +123,6 @@ jobs:
119123
120124
echo "Running: npx tsx scripts/submit-packages.ts $ARGS"
121125
npx tsx scripts/submit-packages.ts $ARGS
122-
env:
123-
GITHUB_TOKEN: ${{ secrets.PKG_SUBMIT_TOKEN || secrets.GITHUB_TOKEN }}
124-
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
125-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
126-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
127126
128127
- name: Summary
129128
if: always()

0 commit comments

Comments
 (0)