Исправление незаполненности плейсхолдеров для кеша #5455
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: Pre-QA | |
| on: | |
| push: | |
| branches-ignore: | |
| - "translations_*" | |
| pull_request: | |
| jobs: | |
| gatekeeper: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' && startsWith(github.head_ref, 'translations_') == false || github.event_name == 'push' | |
| steps: | |
| - run: echo 'Open the Golden Gate' | |
| check-pr-exists: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| has_pr: ${{ steps.check.outputs.has_pr }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Check if PR exists for this branch | |
| id: check | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| result=$(.github/scripts/check-pr-exists.sh "${{ github.event_name }}" "${{ github.ref_name }}" "${{ github.repository }}") | |
| echo "has_pr=$result" >> $GITHUB_OUTPUT | |
| build: | |
| needs: [gatekeeper, check-pr-exists] | |
| if: needs.gatekeeper.result == 'success' && needs.check-pr-exists.outputs.has_pr != 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Save PR number to file | |
| if: github.event_name == 'pull_request' | |
| run: echo ${{ github.event.number }} > PR_NUMBER.txt | |
| - name: Archive PR number | |
| if: github.event_name == 'pull_request' | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: PR_NUMBER | |
| path: PR_NUMBER.txt |