Skip to content

Merge pull request #41 from freedomofpress/feature-stale-5 #24

Merge pull request #41 from freedomofpress/feature-stale-5

Merge pull request #41 from freedomofpress/feature-stale-5 #24

Workflow file for this run

name: Push in main
on:
push:
branches:
- main
permissions:
actions: write
jobs:
push-in-main:
env:
GH_TOKEN: ${{ github.token }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bump stale branches
run: |
PR_BRANCHES=$(gh pr list --base main --json "headRefName" --jq .[].headRefName)
for BRANCH in $PR_BRANCHES; do
RUN=$(gh run list --branch $BRANCH -w "Check branch is rebased" --json databaseId --jq .[0].databaseId)
gh run rerun $RUN
done