Skip to content

Commit

Permalink
testing action
Browse files Browse the repository at this point in the history
  • Loading branch information
dschiese committed Aug 21, 2024
1 parent a52ba03 commit e54f695
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Determine release list
run:
run:
chmod +x ./service_config/version_check.sh
./service_config/version_check.sh

- name: List
run: echo "List of modules ${{ env.ARTIFACTS_TO_BE_RELEASED }}"
- name: Check environment variable
run: |
echo "List of modules ${{ env.ARTIFACTS_TO_BE_RELEASED }}"
printenv ARTIFACTS_TO_BE_RELEASED
4 changes: 2 additions & 2 deletions service_config/version_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ for artifact in "${artifacts[@]}"; do
done

# Join the array elements into a string with a comma as delimiter
ARTIFACTS_TO_BE_RELEASED_STR=$(IFS=","; echo "${artifacts_to_be_released[*]}")
ARTIFACTS_TO_BE_RELEASED_STR=$(IFS=","; echo "${artifacts_to_be_released[*]}")
# Use GitHub Actions command to set an environment variable
echo "ARTIFACTS_TO_BE_RELEASED=test" >> "$GITHUB_ENV"
echo "{ARTIFACTS_TO_BE_RELEASED}={test}" >> "$GITHUB_ENV"

0 comments on commit e54f695

Please sign in to comment.