-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge dev into release for V3 #major
- Loading branch information
Showing
820 changed files
with
177,555 additions
and
722,859 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Bump Version (dev) | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
build: | ||
name: Bump version | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | ||
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Set env variables | ||
run: | | ||
# The next line is very important, otherwise the line after triggers | ||
# git to track the permission change, which breaks bump2version API (needs clean git folder) | ||
git config core.filemode false | ||
chmod +x .github/workflows/utils.sh | ||
echo "VERSION_FILE=openpnm/__version__.py" >> $GITHUB_ENV | ||
echo "SETUP_CFG_FILE=setup.cfg" >> $GITHUB_ENV | ||
echo "${{ github.event.head_commit.message }}" | ||
- name: Install dependencies | ||
run: | | ||
pip install bump2version | ||
- name: Bump version (build) | ||
run: | | ||
source .github/workflows/utils.sh | ||
bump_version build $VERSION_FILE | ||
# Note that we don't want to create a new tag for "builds" | ||
- name: Commit files | ||
run: | | ||
REPOSITORY=${INPUT_REPOSITORY:-$GITHUB_REPOSITORY} | ||
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PUSH_ACTION_TOKEN }}@github.com/${REPOSITORY}.git" | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
# Commit version bump to dev ([no ci] to avoid infinite loop) | ||
git commit -m "Bump version number [no ci]" -a | ||
git push "${remote_repo}" dev |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Bump Version Number | ||
name: Bump Version (release) | ||
|
||
on: | ||
push: | ||
|
@@ -19,7 +19,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.8 | ||
|
||
- name: Set env variables | ||
run: | | ||
|
@@ -68,7 +68,7 @@ jobs: | |
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
# commit version bump to release | ||
# Commit version bump to release | ||
git commit -m "Bump version number" -a | ||
git push "${remote_repo}" release | ||
|
@@ -85,6 +85,10 @@ jobs: | |
pr_allow_empty: true # Creates pull request even if there are no changes | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Trim the 4th digit from the tag | ||
run: | ||
echo "TAG_NEW=${TAG_NEW%.dev?}" >> $GITHUB_ENV | ||
|
||
- name: Create new tag | ||
run: | | ||
REPOSITORY=${INPUT_REPOSITORY:-$GITHUB_REPOSITORY} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Clean Up Tags | ||
|
||
on: push | ||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
deploy: | ||
|
Oops, something went wrong.