Skip to content

Commit

Permalink
Updated github workflow script to work with beta and stable version.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpanajott committed Sep 1, 2024
1 parent 29a868a commit 62050a9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
# root_file: |
# manual.tex
- run: |
sed -i "s/^version: [0-9A-Za-z\.\-_]\+/version: ${{ github.ref_name }}/g" docker/config.yaml
cp docker/web/nspanelmanager/web/templates/footer_template.html docker/web/nspanelmanager/web/templates/footer.html
sed -i 's/%version%/${{ github.ref_name }}/g' docker/web/nspanelmanager/web/templates/footer.html
cp docs/tex/manual.pdf docker/web/nspanelmanager/manual.pdf
Expand Down Expand Up @@ -292,15 +291,17 @@ jobs:
fi
- name: Checkout the repository
uses: actions/checkout@v4
if: ${{ steps.image_name.outputs.branch == 'beta' }}
with:
ref: main
- name: Update beta version in main branch
if: ${{ steps.image_name.outputs.branch == 'beta' }}
run: |
sed -i "/^version/s/.*/version: ${{ github.ref_name }}/g" docker-beta/config.yaml
- name: Update version in main branch
if: ${{ steps.image_name.outputs.branch == 'main' }}
run: |
sed -i "/^version/s/.*/version: ${{ github.ref_name }}/g" docker/config.yaml
- uses: stefanzweifel/git-auto-commit-action@v5
if: ${{ steps.image_name.outputs.branch == 'beta' }}
with:
commit_message: Update beta version reference
commit_message: Update version reference
branch: "main"

0 comments on commit 62050a9

Please sign in to comment.