CI: cd grafana in backport action (#104753)

cd grafana
This commit is contained in:
Kevin Minehart
2025-04-29 21:17:05 -05:00
committed by GitHub
parent 24351851c9
commit be729ea562
+6 -6
View File
@@ -15,16 +15,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone
run: git clone --depth=1 "https://github.com/grafana/grafana.git" && cd grafana
- run: git config --local user.name "github-actions[bot]"
- run: git config --local user.email "github-actions[bot]@users.noreply.github.com"
- run: git config --local --add --bool push.autoSetupRemote true
run: git clone --depth=1 "https://github.com/grafana/grafana.git"
- run: cd grafana && git config --local user.name "github-actions[bot]"
- run: cd grafana && git config --local user.email "github-actions[bot]@users.noreply.github.com"
- run: cd grafana && git config --local --add --bool push.autoSetupRemote true
- name: Set remote URL
env:
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git remote set-url origin "https://grafana-delivery-bot:$GIT_TOKEN@github.com/grafana/grafana.git"
run: cd grafana && git remote set-url origin "https://grafana-delivery-bot:$GIT_TOKEN@github.com/grafana/grafana.git"
- name: Run backport
working-directory: grafana
uses: grafana/grafana-github-actions-go/backport@main # zizmor: ignore[unpinned-uses]
with:
token: ${{ secrets.GITHUB_TOKEN }}