Skip to content

Commit c5a4977

Browse files
committed
Fix passing parameters to dawn-check from scheduled nightly job (#13)
1 parent 4bc6775 commit c5a4977

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/dawn-check.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,17 @@ jobs:
4444
runs-on: ubuntu-latest
4545
outputs:
4646
needs_build: ${{ steps.release_check.outputs.needs_build }}
47+
channel: ${{ steps.read-inputs.outputs.channel }}
48+
config: ${{ steps.read-inputs.outputs.config }}
4749
env:
4850
GH_TOKEN: ${{ github.token }}
4951
steps:
52+
- name: Read inputs
53+
id: read-inputs
54+
run: |
55+
echo "channel=${{ inputs.channel || github.event.inputs.channel }}" >> $GITHUB_OUTPUT
56+
echo "config=${{ inputs.config || github.event.inputs.config }}" >> $GITHUB_OUTPUT
57+
5058
- name: Checkout code
5159
uses: actions/checkout@v5
5260

@@ -64,7 +72,7 @@ jobs:
6472
- name: Get Dawn version
6573
run: |
6674
cd Dawn
67-
python ci_build_dawn.py get-dawn-version --channel ${{ github.event.inputs.channel }}
75+
python ci_build_dawn.py get-dawn-version --channel ${{ steps.read-inputs.outputs.channel }}
6876
6977
- name: Read Dawn version
7078
id: read-version
@@ -82,7 +90,7 @@ jobs:
8290
- name: Tag name
8391
id: tag
8492
run: |
85-
TAG="dawn-chromium-${{github.event.inputs.channel}}-${{steps.read-version.outputs.chromium_dawn_version}}-${{github.event.inputs.config}}"
93+
TAG="dawn-chromium-${{ steps.read-inputs.outputs.channel }}-${{steps.read-version.outputs.chromium_dawn_version}}-${{ steps.read-inputs.outputs.config }}"
8694
echo "tag=$TAG" >> $GITHUB_OUTPUT
8795
8896
- name: Run Dawn build if necessary
@@ -102,5 +110,5 @@ jobs:
102110
needs: check-dawn
103111
uses: ./.github/workflows/dawn.yaml
104112
with:
105-
channel: ${{ github.event.inputs.channel }}
106-
config: ${{ github.event.inputs.config }}
113+
channel: ${{ needs.check-dawn.outputs.channel }}
114+
config: ${{ needs.check-dawn.outputs.config }}

0 commit comments

Comments
 (0)