Skip to content

index: remove postings_sketches #226

index: remove postings_sketches

index: remove postings_sketches #226

Workflow file for this run

name: Backport PR Creator
on:
pull_request:
types:
- closed
- labeled
permissions:
contents: read
id-token: write
pull-requests: write
jobs:
main:
runs-on: ubuntu-latest
# We don't run the backporting for PRs from forks because those can't access "mimir-github-bot" secrets in vault.
# We don't use GitHub actions app (secrets.GITHUB_TOKEN) because PRs created by the bot don't trigger CI.
# Also only run if the PR is merged, as an extra safe-guard.
if: ${{ ! github.event.pull_request.head.repo.fork && github.event.pull_request.merged == true }}
steps:
- name: Checkout Actions
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: "grafana/grafana-github-actions"
path: ./actions
# pin the version to before https://github.com/grafana/grafana-github-actions/pull/113 because
# we don't want to have the same strict rules for PR labels
# We also use our own version which works with merge commits since a lot of the commits in this repo are merge commits.
ref: ea415d5eaa70337430db7ae7782f28dd14a15525
persist-credentials: false
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Retrieve GitHub App Credentials from Vault
id: get-secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@28361cdb22223e5f1e34358c86c20908e7248760 # v1.1.0
with:
repo_secrets: |
APP_ID=mimir-github-bot:app_id
PRIVATE_KEY=mimir-github-bot:private_key
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
with:
# Variables generated by the previous step get-secrets
app-id: ${{ env.APP_ID }}
private-key: ${{ env.PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Run backport
uses: ./actions/backport
with:
token: ${{ steps.app-token.outputs.token }}
labelsToAdd: "backport"
title: "[{{base}}] {{originalTitle}}"