Skip to content

Commit

Permalink
Update create_rel_tag.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaustubh-pande authored Mar 25, 2024
1 parent 89cb275 commit 27f836f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/create_rel_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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

0 comments on commit 27f836f

Please sign in to comment.