Skip to content

Commit

Permalink
Merge pull request #335 from fboundy/patch
Browse files Browse the repository at this point in the history
Updated workflows
  • Loading branch information
fboundy authored Dec 31, 2024
2 parents e4ae12a + 93ae604 commit bf39c3a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/auto_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
with:
fetch-depth: 0

- name: Fetch main branch
run: git fetch origin main:main
- name: Fetch main branch into a temporary branch
run: |
git fetch origin main
git checkout -b temp-main origin/main
- name: Get VERSION from patch branch
id: get_patch_version
Expand All @@ -32,7 +34,7 @@ jobs:
- name: Get VERSION from main branch
id: get_main_version
run: |
git checkout main
git checkout temp-main
VERSION=$(grep -m 1 -oP '(?<=^VERSION = ")[^"]+' apps/pv_opt/pv_opt.py)
if [ -z "$VERSION" ]; then
echo "Error: VERSION not found in apps/pv_opt/pv_opt.py on main branch." >&2
Expand Down

0 comments on commit bf39c3a

Please sign in to comment.