|
6 | 6 | branch: |
7 | 7 | type: string |
8 | 8 | required: false |
9 | | - # When using github.ref || github.head_ref, it would contain the full path, including /, which breaks the postgres hostname |
10 | | - default: ${{ github.sha }} |
11 | 9 | cypress_enable: |
12 | 10 | description: "Global enable for cypress" |
13 | 11 | type: boolean |
@@ -132,7 +130,7 @@ jobs: |
132 | 130 | - name: Checkout source repository |
133 | 131 | uses: actions/checkout@v4 |
134 | 132 | with: |
135 | | - ref: ${{ inputs.branch }} |
| 133 | + ref: ${{ inputs.branch || github.sha }} |
136 | 134 | token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} |
137 | 135 | fetch-depth: ${{ inputs.chromatic_enable && '0' || '1' }} |
138 | 136 | - name: Checkout github-workflows |
@@ -172,7 +170,7 @@ jobs: |
172 | 170 | - name: Checkout source repository |
173 | 171 | uses: actions/checkout@v4 |
174 | 172 | with: |
175 | | - ref: ${{ inputs.branch }} |
| 173 | + ref: ${{ inputs.branch || github.sha }} |
176 | 174 | token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} |
177 | 175 | - name: Checkout github-workflows |
178 | 176 | uses: actions/checkout@v4 |
@@ -263,7 +261,7 @@ jobs: |
263 | 261 | - name: Checkout source repository |
264 | 262 | uses: actions/checkout@v4 |
265 | 263 | with: |
266 | | - ref: ${{ inputs.branch }} |
| 264 | + ref: ${{ inputs.branch || github.sha }} |
267 | 265 | token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} |
268 | 266 | fetch-depth: ${{ inputs.chromatic_enable && '0' || '1' }} |
269 | 267 | - name: Checkout github-workflows |
@@ -405,7 +403,7 @@ jobs: |
405 | 403 | - name: Checkout source repository |
406 | 404 | uses: actions/checkout@v4 |
407 | 405 | with: |
408 | | - ref: ${{ inputs.branch }} |
| 406 | + ref: ${{ inputs.branch || github.sha }} |
409 | 407 | token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} |
410 | 408 | fetch-depth: ${{ inputs.chromatic_enable && '0' || '1' }} |
411 | 409 | - name: Checkout github-workflows |
@@ -447,13 +445,13 @@ jobs: |
447 | 445 | uses: actions/upload-artifact@v4 |
448 | 446 | if: always() |
449 | 447 | with: |
450 | | - name: "bundles-${{ inputs.branch }}" |
| 448 | + name: "bundles-${{ inputs.branch || github.sha }}" |
451 | 449 | path: bundles/ |
452 | 450 | - name: Upload playwright report |
453 | 451 | uses: actions/upload-artifact@v4 |
454 | 452 | if: always() |
455 | 453 | with: |
456 | | - name: "playwright-report-${{ inputs.branch }}" |
| 454 | + name: "playwright-report-${{ inputs.branch || github.sha }}" |
457 | 455 | path: playwright-report/ |
458 | 456 | - name: Run Chromatic Playwright |
459 | 457 | if: ${{ inputs.chromatic_enable }} |
|
0 commit comments