Skip to content

Commit d922b8a

Browse files
author
Colin Davidson
committed
More stuff
1 parent bbc08f9 commit d922b8a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/workflow_callee.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,29 @@ on:
1818
pull_request:
1919
paths:
2020
- '.github/workflows/workflow_callee.yml'
21+
22+
env:
23+
LLVM_VERSION: 17
24+
UPDATE_CACHE: false
2125
jobs:
26+
update-values:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: update envs
30+
run: |
31+
if [ -n "${{ inputs.llvm_version}}" ]; then
32+
echo LLVM_VERSION=${{ inputs.llvm_version}} >> $GITHUB_ENV
33+
echo UPDATE_CACHE=${{ inputs.update_cache}} >> $GITHUB_ENV
34+
fi
35+
cat $GITHUB_ENV
36+
2237
print-inputs:
2338
runs-on: ubuntu-latest
39+
needs: update-values
2440
steps:
2541
- name: Print the input tag to STDOUT
2642
run: |
2743
echo ${{ inputs.llvm_version }}
2844
echo ${{ inputs.update_cache }}
45+
echo LLVM="$LLVM_VERSION" CACHE="$UPDATE_CACHE"
2946

0 commit comments

Comments
 (0)