[Backport version-24.0] Assure breakthrough time is always cast to ms #5220
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
| name: Backport merged pull request | |
| on: | |
| pull_request_target: | |
| types: | |
| - closed | |
| - labeled | |
| permissions: | |
| contents: write # so it can comment | |
| pull-requests: write # so it can create pull requests | |
| jobs: | |
| backport: | |
| name: Backport pull request | |
| runs-on: ubuntu-latest | |
| # Don't run on closed unmerged pull requests | |
| if: > | |
| github.event.pull_request.merged | |
| && ( | |
| github.event.action == 'closed' | |
| || ( | |
| github.event.action == 'labeled' | |
| && contains(github.event.label.name, 'backport') | |
| ) | |
| ) | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| ref: ${{ github.event.repository.default_branch }} | |
| fetch-depth: 0 | |
| - name: Generate token | |
| id: generate-token | |
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | |
| with: | |
| app-id: ${{ vars.SCOUT_TEAM_APP_ID }} | |
| private-key: ${{ secrets.SCOUT_TEAM_APP_PRIVATE_KEY }} | |
| - name: Create backport pull requests | |
| uses: korthout/backport-action@66065406958f46e82238fd59546f5a99e69e22aa # v4.5.2 | |
| with: | |
| add_author_as_assignee: true | |
| copy_labels_pattern: release-notes:.* | |
| github_token: ${{ steps.generate-token.outputs.token }} |