Skip to content

Commit

Permalink
Make version check pass when bump is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
almahmoud committed Apr 17, 2024
1 parent 05d92a4 commit 9d2fe1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/daily-rocker-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,21 @@ jobs:
echo latest-tag=$LATEST_TAG >> $GITHUB_OUTPUT
if [ "$LATEST_TAG" == "$CURR_TAG" ]; then
echo "Detected '$LATEST_TAG' == '$CURR_TAG' as latest available tag"
echo verdict="no" >> $GITHUB_OUTPUT
else
mkdir -p ${{github.workspace}}/tmp/${{github.repository}}
git clone https://github.com/${{github.repository}} -b ${{steps.defs.outputs.release-tag}} ${{github.workspace}}/tmp/${{github.repository}}
cd ${{github.workspace}}/tmp/${{github.repository}}
AUTO_BRANCH="auto-bump-${LATEST_TAG}"
sed -i "s/$CURR_TAG/$LATEST_TAG/g" .github/workflows/build_containers.yaml
sed -r -i 's/(^ARG BIOCONDUCTOR_PATCH=)([0-9]+)$/echo "\1$((\2+1))"/ge' Dockerfile
echo verdict="yes" >> $GITHUB_OUTPUT
fi
- name: Open pull request
id: cpr
uses: peter-evans/create-pull-request@v6
if: steps.rbump.outputs.verdict == 'yes'
with:
token: ${{secrets.PAT}}
commit-message: Auto-bump ${{steps.rbump.outputs.latest-tag}}
Expand Down

0 comments on commit 9d2fe1b

Please sign in to comment.