name: Migrate open PRs # Migrate open PRs from a superseded release branch to the current release branch and notify authors on: workflow_call: inputs: from: description: 'The base branch to check for open PRs' required: true type: string to: description: 'The base branch to migrate open PRs to' required: true type: string ownerRepo: description: Owner/repo of the repository where the branch is created (e.g. 'grafana/grafana') required: true type: string secrets: GRAFANA_DELIVERY_BOT_APP_ID: required: true GRAFANA_DELIVERY_BOT_APP_PEM: required: true workflow_dispatch: inputs: from: description: 'The base branch to check for open PRs' required: true type: string to: description: 'The base branch to migrate open PRs to' required: true type: string ownerRepo: description: Owner/repo of the repository where the branch is created (e.g. 'grafana/grafana') required: true type: string secrets: GRAFANA_DELIVERY_BOT_APP_ID: required: true GRAFANA_DELIVERY_BOT_APP_PEM: required: true jobs: main: runs-on: ubuntu-latest steps: - name: "Generate token" id: generate_token uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 with: app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }} private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }} - name: Migrate PRs uses: grafana/grafana-github-actions-go/migrate-open-prs@main with: token: ${{ steps.generate_token.outputs.token }} ownerRepo: ${{ inputs.ownerRepo }} from: ${{ inputs.from }} to: ${{ inputs.to }} binary_release_tag: 'dev'