⚡ - Change revisionHistoryLimit 5 to 3 #143
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bump | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- 'main' | |
jobs: | |
bump-versions: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Git setup 🔧 | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Get PR labels 🏷️ | |
id: pr-labels | |
uses: joerick/[email protected] | |
- name: Bump Version ✨ | |
run: | | |
set -ex | |
pip install --no-cache-dir bump2version | |
python ./.github/callBump2version.py ${{steps.pr-labels.outputs.labels}} | |
- name: Push Results 🚀 | |
id: pushResults | |
run: | | |
if git merge-base --is-ancestor HEAD @{u} ; then | |
echo "No push necessary" | |
else | |
echo "Version bumps happened. Pushing now..." | |
git push | |
fi |