Skip to content

Commit 8a2fd21

Browse files
committed
chore: Set the input value to env variable
1 parent 28015f3 commit 8a2fd21

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/dependency_compatibility_test.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
java-version: '21'
2626
distribution: 'temurin'
2727
cache: maven
28+
- run: echo "DEPENDENCIES_LIST=${{ github.event.inputs.dependencies-list }}" >> $GITHUB_ENV
2829
# Set up the for the CI
2930
- name: Install sdk-platform-java's modules
3031
# gapic-generator-java requires Java 8 and is irrelevant for this CI
@@ -34,10 +35,10 @@ jobs:
3435
- name: Perform Dependency Compatibility Testing
3536
shell: bash
3637
run: |
37-
if [[ ${{ github.event.inputs.dependencies-list }} == '' ]]
38+
if [[ -z ${{ env.DEPENDENCIES_LIST }} ]]
3839
./.github/scripts/test_dependency_compatibility.sh -f dependencies.txt
3940
else
40-
./.github/scripts/test_dependency_compatibility.sh -l ${{ github.event.inputs.dependencies-list }}
41+
./.github/scripts/test_dependency_compatibility.sh -l ${{ env.DEPENDENCIES_LIST }}
4142
fi
4243
# Set up local showcase server
4344
- name: Parse showcase version
@@ -56,9 +57,9 @@ jobs:
5657
- name: Perform Dependency Compatibility Testing (Showcase)
5758
shell: bash
5859
run: |
59-
if [[ ${{ github.event.inputs.dependencies-list }} == '' ]]
60+
if [[ -z ${{ env.DEPENDENCIES_LIST }} ]]
6061
../.github/scripts/test_dependency_compatibility.sh -f ../dependencies.txt
6162
else
62-
../.github/scripts/test_dependency_compatibility.sh -l ${{ github.event.inputs.dependencies-list }}
63+
../.github/scripts/test_dependency_compatibility.sh -l ${{ env.DEPENDENCIES_LIST }}
6364
fi
6465
working-directory: java-showcase

0 commit comments

Comments
 (0)