-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,25 +27,25 @@ jobs: | |
echo "New version: ${NEW_VERSION}" | ||
echo "new_version=${NEW_VERSION}" >> $GITHUB_ENV | ||
- name: Read/Write Properties File | ||
- name: Bump version 🖊️ | ||
uses: kurt-code/[email protected] | ||
id: read-properties | ||
with: | ||
operation: 'write' | ||
file-path: 'trading_calendar/__init__.py' | ||
key-value-pairs: '{"__version__": "${{ env.new_version }}"}' | ||
|
||
- name: Commit README.md | ||
- name: Commit version update 🔀 | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
id: auto-commit-action-readme | ||
id: auto-commit-action-bump-version | ||
with: | ||
commit_message: Update version to ${{ env.new_version }} | ||
file_pattern: README.md | ||
branch: master | ||
commit_message: Bump version to ${{ env.new_version }} | ||
file_pattern: trading_calendar/__init__.py | ||
branch: main | ||
|
||
- name: "README.md - changes have been detected 🔍" | ||
if: steps.auto-commit-action-readme.outputs.changes_detected == 'true' | ||
run: echo "Updated README.md with release version ${{ env.new_version }} ✅" | ||
- name: "Version - changes have been detected 🔍" | ||
if: steps.auto-commit-action-bump-version.outputs.changes_detected == 'true' | ||
run: echo "Updated trading_calendar/__init__.py with release version ${{ env.new_version }} ✅" | ||
|
||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
|
@@ -92,7 +92,7 @@ jobs: | |
branch: gh-pages | ||
folder: docs/api-doc | ||
target-folder: api-doc/latest | ||
commit-message: Publishing latest API doc | ||
commit-message: Publishing ${{ env.new_version }} API doc | ||
clean: true | ||
dry-run: false | ||
|
||
|
@@ -128,13 +128,13 @@ jobs: | |
echo "New version: ${NEW_VERSION}" | ||
echo "new_version=${NEW_VERSION}" >> $GITHUB_ENV | ||
- name: Set up QEMU | ||
- name: Set up QEMU ⚙️ | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
- name: Set up Docker Buildx ⚙️ | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
- name: Login to Docker Hub 🔐 | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ vars.DOCKERHUB_USERNAME }} | ||
|