-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89cb275
commit 27f836f
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,7 @@ jobs: | |
update-params-env: | ||
runs-on: ubuntu-latest | ||
needs: release | ||
outputs: | ||
param_env: ${{ steps.read_params_env.outputs.params_env }} | ||
release_version: ${{ steps.get_release_version.outputs.release_version }} | ||
|
@@ -93,20 +94,20 @@ jobs: | |
- name: Read params.env | ||
id: read_params_env | ||
run: | | ||
echo "params_env=$(cat /config/params.env)" >> $GITHUB_OUTPUT | ||
echo "params_env=$(cat config/params.env)" >> $GITHUB_OUTPUT | ||
- name: Read release version | ||
id: get_release_version | ||
run: echo "release_version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | ||
|
||
- name: Update params.env with new release version | ||
run: | | ||
sed -i "s/:v[0-9.]*$/:${{ steps.get_release_version.outputs.release_version }}/g" /config/params.env | ||
sed -i "s/:v[0-9.]*$/:${{ steps.get_release_version.outputs.release_version }}/g" config/params.env | ||
- name: Commit changes | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git add /config/params.env | ||
git add config/params.env | ||
git commit -m "Update params.env with new release tags [${{ steps.get_release_version.outputs.release_version }}]" | ||
git push |