Latest backup in any state should not be deleted while partial delete command #135
This file contains 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: Link with Startrek | |
on: | |
pull_request: { branches: [main] } | |
jobs: | |
link_with_startrek: | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
steps: | |
- name: parse_branch_name | |
id: parse_branch_name | |
run: | | |
if [[ ${{ github.head_ref }} =~ ^([A-Za-z]+\-[0-9]+).*$ ]]; then | |
echo issue_number="${BASH_REMATCH[1]}" >> $GITHUB_OUTPUT | |
fi | |
- name: link_issue | |
if: steps.parse_branch_name.outputs.issue_number | |
uses: fjogeleit/http-request-action@v1 | |
with: | |
url: 'https://st-api.yandex-team.ru/v2/issues/${{ steps.parse_branch_name.outputs.issue_number }}' | |
method: 'LINK' | |
customHeaders: > | |
{ | |
"Link": "<${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.number }}>; rel=\"relates\"", | |
"Authorization": "OAuth ${{ secrets.OAUTH_STARTREK }}" | |
} | |
ignoreStatusCodes: 409 |