Skip to content

Commit

Permalink
Update create_version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DARKDRAGON-LK authored Apr 9, 2024
1 parent f034e4a commit f50ea2f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/create_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- 'Issue#*'
- 'master' # Add master branch

jobs:
update_version_and_readme:
Expand Down Expand Up @@ -52,15 +53,19 @@ jobs:
run: |
sed -i "s/Current Version:.*/Current Version: 3.0.0.${{ steps.current_date.outputs.date }}.${{ steps.increment_counter.outputs.counter }} (This line will be automatically updated to reflect the latest version)/" README.md
- name: Update template.xhtml
run: |
sed -i "s/ V\..*\"\/ V\.3\.0\.0\.${{ steps.current_date.outputs.date }}\.${{ steps.increment_counter.outputs.counter }}\"\/" src/main/webapp/resources/template/template.xhtml
- name: Stage changes
run: |
git add VERSION.txt README.md .github/counter.txt .github/last_date.txt
git add VERSION.txt README.md src/main/webapp/resources/template/template.xhtml .github/counter.txt .github/last_date.txt
- name: Commit version and README update
run: |
git commit -m "Update version to 3.0.0.${{ steps.current_date.outputs.date }}.${{ steps.increment_counter.outputs.counter }}"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: "Issue#${{ github.event.ref_name }}"
branch: ${{ github.event.ref_name }} # Adjust branch dynamically based on the event

0 comments on commit f50ea2f

Please sign in to comment.