fix: refine referencing pattern detection to ignore double braces #1105
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: CI/CD Pipeline | |
| on: | |
| pull_request: | |
| branches: [main] | |
| release: | |
| types: [published] | |
| permissions: | |
| contents: write | |
| packages: write | |
| jobs: | |
| determine_version: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.set_version.outputs.version }} | |
| is_pr: ${{ steps.set_version.outputs.is_pr }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set version and PR flag | |
| id: set_version | |
| run: | | |
| if [[ "${{ github.event_name }}" == "pull_request" ]]; then | |
| echo "version=$(git rev-parse --short ${{ github.event.pull_request.head.sha }} | cut -c 1-7)" >> $GITHUB_OUTPUT | |
| echo "is_pr=true" >> $GITHUB_OUTPUT | |
| elif [[ "${{ github.event_name }}" == "release" ]]; then | |
| echo "version=${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT | |
| echo "is_pr=false" >> $GITHUB_OUTPUT | |
| fi | |
| frontend: | |
| needs: determine_version | |
| uses: ./.github/workflows/frontend.yml | |
| with: | |
| version: ${{ needs.determine_version.outputs.version }} | |
| is_pr: ${{ needs.determine_version.outputs.is_pr }} | |
| secrets: inherit | |
| backend: | |
| needs: determine_version | |
| uses: ./.github/workflows/backend.yml | |
| with: | |
| version: ${{ needs.determine_version.outputs.version }} | |
| is_pr: ${{ needs.determine_version.outputs.is_pr }} | |
| secrets: inherit |