Skip to content

Commit

Permalink
github actions update
Browse files Browse the repository at this point in the history
  • Loading branch information
kolosovpetro committed Jul 19, 2023
1 parent 005823a commit 5c88f69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-and-deploy-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ jobs:
echo ${{ env.GITVERSION_SEMVER }}
echo ${{ env.GitVersion_InformationalVersion }}
echo ${{ env.GitVersion_EscapedBranchName }}
newVersion="${{ env.GITVERSION_SEMVER }}+${{ env.GITVERSION_BRANCHNAME }}.${{ env.GITVERSION_SHORTSHA }}"
echo "Next version: $newVersion"
- name: Update version.tex
shell: bash
run: |
newVersion=${{ env.GitVersion_InformationalVersion }}
newVersion="${{ env.GITVERSION_SEMVER }}+${{ env.GITVERSION_BRANCHNAME }}.${{ env.GITVERSION_SHORTSHA }}"
sed -i "s|Local-0.1.0|$newVersion|" "src/sections/version.tex"
- name: Build PDF
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
echo ${{ env.GITVERSION_SEMVER }}
echo ${{ env.GitVersion_InformationalVersion }}
echo ${{ env.GitVersion_EscapedBranchName }}
newVersion="${{ env.GITVERSION_SEMVER }}+${{ env.GITVERSION_BRANCHNAME }}.${{ env.GITVERSION_SHORTSHA }}"
newVersion="${{ env.GITVERSION_SEMVER }}+${{ env.GITVERSION_BRANCHNAME }}.${{ env.GITVERSION_SHORTSHA }}"
echo "Next version: $newVersion"
- name: Update version.tex
shell: bash
run: |
newVersion="${{ env.GITVERSION_SEMVER }}+${{ env.GITVERSION_BRANCHNAME }}.${{ env.GITVERSION_SHORTSHA }}"
newVersion="${{ env.GITVERSION_SEMVER }}+${{ env.GITVERSION_BRANCHNAME }}.${{ env.GITVERSION_SHORTSHA }}"
sed -i "s|Local-0.1.0|$newVersion|" "src/sections/version.tex"
- name: Build PDF
Expand Down

0 comments on commit 5c88f69

Please sign in to comment.