Skip to content

Commit

Permalink
New generate package version workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
quinna-h committed Oct 8, 2024
1 parent 5f25f36 commit 851d828
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/generate-package-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,24 @@ jobs:
pip install requests
pip install riot==0.19.1
- name: Run regenerate-riot-latest
run: scripts/regenerate-riot-latest.sh

- name: Get latest version
id: new-latest
- name: Regenerate and check branch
id: regenerate-check
run: |
NEW_LATEST=$(python scripts/get_latest_version.py ${{ env.VENV_NAME }})
echo "NEW_LATEST=$NEW_LATEST" >> $GITHUB_ENV
branch_exists=true
while [ "$branch_exists" = true ]; do
scripts/regenerate-riot-latest.sh
# Get the latest version
NEW_LATEST=$(python scripts/get_latest_version.py ${{ env.VENV_NAME }})
echo "NEW_LATEST=$NEW_LATEST" >> $GITHUB_ENV
if git branch -r | grep -q "origin/$BRANCH_NAME"; then
echo "Branch already exists. Regenerating..."
else
branch_exists=false
echo "Branch does not exist. Proceeding to create a pull request."
fi
done
- name: Create Pull Request
id: pr
Expand Down

0 comments on commit 851d828

Please sign in to comment.