/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/workflows/backport.yml
50 строк
2 KB
Twangboy
ci: pin GitHub Actions to commit SHAs with version comments
10 апр 2026, 21:48
10 апр 2026, 21:48
d95192b
Код
Авторство
О чём код?
name: Backport PR run-name: "Backport PR #${{ github.event.number }}" on: pull_request_target: types: - "labeled" - "closed" permissions: contents: write pull-requests: write jobs: backport: name: Backport PR runs-on: - ubuntu-latest if: | github.event.pull_request.merged == true && ( contains(github.event.pull_request.labels.*.name, 'backport:master') || contains(github.event.pull_request.labels.*.name, 'backport:3007.x') || contains(github.event.pull_request.labels.*.name, 'backport:3006.x') || contains(github.event.pull_request.labels.*.name, 'backport:3005.x') ) && ( (github.event.action == 'labeled' && ( contains(github.event.pull_request.labels.*.name, 'backport:master') || contains(github.event.pull_request.labels.*.name, 'backport:3007.x') || contains(github.event.pull_request.labels.*.name, 'backport:3006.x') || contains(github.event.pull_request.labels.*.name, 'backport:3005.x') )) || (github.event.action == 'closed') ) steps: - name: Backport Action uses: sorenlouv/backport-github-action@e325a2d70df7264afa24c92b1d5feb2278ff63af # v8.9.7 with: github_token: ${{ secrets.GITHUB_TOKEN }} auto_backport_label_prefix: "backport:" add_original_reviewers: true - name: Info log if: ${{ success() }} run: jq -C '.' ~/.backport/backport.info.log - name: Debug log if: ${{ failure() }} run: jq -C '.' ~/.backport/backport.debug.log