Bugfix: default replicatemplate #5457
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This checks merged PRs for labels like "backport release-x.y" | |
| # and opens a new PR backporting the same commit to the release branch. | |
| # This workflow also runs when the PR is labeled or opened, but will | |
| # will only check a few things and detect that the PR is not yet merged. | |
| # At this time only squashed PRs are supported since the cherry-pick | |
| # command does not include "-m <n>" arg required for merge commits. | |
| name: Backport PR Creator | |
| on: | |
| pull_request: | |
| types: | |
| - closed | |
| - labeled | |
| permissions: {} | |
| jobs: | |
| main: | |
| # skip it in all forks, only run in grafana/tempo. | |
| if: github.repository == 'grafana/tempo' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout Actions | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: "grafana/grafana-github-actions" | |
| path: ./actions | |
| ref: main | |
| persist-credentials: false | |
| - name: Install Actions | |
| run: npm install --production --prefix ./actions | |
| - name: Get Github App secrets from vault | |
| id: get-secrets | |
| uses: grafana/shared-workflows/actions/get-vault-secrets@bca48b60029f80d2ea7c1a6bd1a49ffa7915a9e3 #get-vault-secrets 1.3.0 | |
| with: | |
| export_env: false | |
| repo_secrets: | | |
| APP_ID=tempo-ci-app:app-id | |
| PRIVATE_KEY=tempo-ci-app:private-key | |
| - name: Generate GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 | |
| with: | |
| app-id: ${{ fromJSON(steps.get-secrets.outputs.secrets).APP_ID }} | |
| private-key: ${{ fromJSON(steps.get-secrets.outputs.secrets).PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| repositories: tempo | |
| - name: Run backport | |
| uses: ./actions/backport | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| labelsToAdd: "backport" | |
| title: "[{{base}}] {{originalTitle}}" |