Skip to content

Refactor to make encodings state if they are writeable or not #5983

Refactor to make encodings state if they are writeable or not

Refactor to make encodings state if they are writeable or not #5983

Workflow file for this run

# 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
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@2d5a0678eb32b0fd6655b4f7a3a7ec72eaf530ca #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@7e473efe3cb98aa54f8d4bac15400b15fad77d94 # v2.2.0
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}}"