From a41e5433d9d7d91c675679f57eb0c2de581709eb Mon Sep 17 00:00:00 2001 From: Esturban Date: Thu, 16 Jul 2026 13:40:25 +0300 Subject: [PATCH] fix(ci): remove broken legacy dev-to-master workflow auto-pr-dev-to-prod.yml crashed on every push to dev once dev and master were already in sync ("No commits between master and dev"), because unlike dev-to-trunk.yml it never guarded the no-op case. dev-to-trunk.yml already covers this exact job (idempotent refresh, correct hardcoded reviewer, no-op-safe) -- this was a leftover duplicate from before that workflow existed. --- .github/workflows/auto-pr-dev-to-prod.yml | 37 ----------------------- 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/auto-pr-dev-to-prod.yml diff --git a/.github/workflows/auto-pr-dev-to-prod.yml b/.github/workflows/auto-pr-dev-to-prod.yml deleted file mode 100644 index ab3a576..0000000 --- a/.github/workflows/auto-pr-dev-to-prod.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: ingo dev to master - -on: - push: - branches: - - dev - workflow_dispatch: - -jobs: - pull-request: - runs-on: ubuntu-latest - permissions: - pull-requests: write - contents: read - issues: write - steps: - - uses: actions/checkout@v4 - - name: Create pull request - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - AUTO_PR_TOKEN: ${{ secrets.AUTO_PR_TOKEN }} - shell: bash - run: | - set -euo pipefail - if [ -n "${AUTO_PR_TOKEN:-}" ]; then - export GH_TOKEN="$AUTO_PR_TOKEN" - fi - - CURRENT_BRANCH="${{ github.ref_name }}" - BODY="Automated promotion PR from $CURRENT_BRANCH to master" - - EXISTING_PR=$(gh pr list --head "$CURRENT_BRANCH" --base "master" --json number --jq '.[0].number // empty') - if [ -n "$EXISTING_PR" ]; then - gh pr edit "$EXISTING_PR" --title "Pulling $CURRENT_BRANCH into production" --body "$BODY" - else - gh pr create --title "Pulling $CURRENT_BRANCH into production" --body "$BODY" --base "master" --head "$CURRENT_BRANCH" - fi