Skip to content

Commit

Permalink
Merge pull request #95 from Dontrian/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Dontrian authored Dec 7, 2023
2 parents 51abf40 + f6da633 commit 50002fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
if [ "${{github.head_ref}}" == "develop" ]; then
echo Pull request is from develop ✔
exit 0
elif [ "${{github.head_ref}}" == "master" ]; then
echo Pull request is from master ✔
exit 0
else
echo Pull requests from ${{github.head_ref}} are not allowed. Only pull requests from develop are allowed.
fi
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/version-bump-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:

jobs:
bump-minor-version-on-master:
if: github.event.pull_request.merged == true
name: Bump the version on master
if: github.event.pull_request.merged == true

permissions:
contents: write
Expand All @@ -27,15 +27,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.VERSION_BUMPER_PAT }}
skip-push: true # skip push so that we can force push
version-type: 'minor'
target-branch: 'master'
commit-message: 'CI: bumped version to {{version}} because a pull request was merged into master'

- name: force-push
run:
git push origin master --force

merge-master-into-develop:
needs: bump-minor-version-on-master # has to be run after version has been bumped
if: github.event.pull_request.merged == true
name: Merge master into develop
needs: bump-minor-version-on-master # has to be run after the push to master
if: github.event.pull_request.merged == true

permissions:
contents: write
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.16.10"
"version": "0.16.11"
}

0 comments on commit 50002fb

Please sign in to comment.