@@ -59,15 +59,17 @@ jobs:
5959 runs-on : ubuntu-latest
6060 outputs :
6161 content-source-match : ${{ steps.event-check.outputs.content-source-match != '' && steps.event-check.outputs.content-source-match || steps.match.outputs.content-source-match }}
62- content-source-name : ${{ steps.event-check.outputs.content-source-name != '' && steps.event-check.outputs.content-source-name || steps.match.outputs.content-source-name }}
62+ content-source-next : ${{ steps.event-check.outputs.content-source-next != '' && steps.event-check.outputs.content-source-next || steps.match.outputs.content-source-next }}
63+ content-source-current : ${{ steps.event-check.outputs.content-source-current != '' && steps.event-check.outputs.content-source-current || steps.match.outputs.content-source-current }}
6364 steps :
6465 - name : Not a push event
6566 id : event-check
6667 if : contains(fromJSON('["merge_group", "pull_request", "pull_request_target"]'), github.event_name)
67- # ensure we emit static output to simplify our checks in the build step
68+ # ensure we emit static output to simplify our checks in the build step, next/current output has no barrings during preview builds
6869 run : |
6970 echo "content-source-match=true" >> $GITHUB_OUTPUT
70- echo "content-source-name=next" >> $GITHUB_OUTPUT
71+ echo "content-source-next=true" >> $GITHUB_OUTPUT
72+ echo "content-source-current=true" >> $GITHUB_OUTPUT
7173 - name : Match for push events
7274 id : match
7375 if : contains(fromJSON('["push"]'), github.event_name)
@@ -76,11 +78,11 @@ jobs:
7678 ref_name : ${{ github.ref_name }}
7779 repository : ${{ github.repository }}
7880 - name : Debug
79- if : contains(fromJSON('["merge_group", "pull_request", "pull_request_target"]'), github.event_name)
8081 run : |
8182 echo "Non sensitive data, echo'ing here temporarily to validate this job before connecting it further into the build job"
8283 echo "content-source-match=${{ steps.event-check.outputs.content-source-match != '' && steps.event-check.outputs.content-source-match || steps.match.outputs.content-source-match }}"
83- echo "content-source-name=${{ steps.event-check.outputs.content-source-name != '' && steps.event-check.outputs.content-source-name || steps.match.outputs.content-source-name }}"
84+ echo "content-source-name=${{ steps.event-check.outputs.content-source-next != '' && steps.event-check.outputs.content-source-next || steps.match.outputs.content-source-next }}"
85+ echo "content-source-current=${{ steps.event-check.outputs.content-source-current != '' && steps.event-check.outputs.content-source-current || steps.match.outputs.content-source-current }}"
8486 echo "ref=${{ github.ref_name }}"
8587 echo "repo=${{ github.repository }}"
8688
0 commit comments