@@ -59,15 +59,17 @@ jobs:
59
59
runs-on : ubuntu-latest
60
60
outputs :
61
61
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 }}
63
64
steps :
64
65
- name : Not a push event
65
66
id : event-check
66
67
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
68
69
run : |
69
70
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
71
73
- name : Match for push events
72
74
id : match
73
75
if : contains(fromJSON('["push"]'), github.event_name)
@@ -76,11 +78,11 @@ jobs:
76
78
ref_name : ${{ github.ref_name }}
77
79
repository : ${{ github.repository }}
78
80
- name : Debug
79
- if : contains(fromJSON('["merge_group", "pull_request", "pull_request_target"]'), github.event_name)
80
81
run : |
81
82
echo "Non sensitive data, echo'ing here temporarily to validate this job before connecting it further into the build job"
82
83
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 }}"
84
86
echo "ref=${{ github.ref_name }}"
85
87
echo "repo=${{ github.repository }}"
86
88
0 commit comments