Skip to content

Commit

Permalink
πŸ“ Chore(Actions): Only build on existing new commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Oct 28, 2023
1 parent 6f9a74c commit 99325d8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
7.0.x
include-prerelease: false

- uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Filter Publish Profiles
shell: pwsh
working-directory: "KitX Clients/KitX Dashboard/KitX Dashboard"
Expand Down Expand Up @@ -91,8 +95,15 @@ jobs:
cd ../../
- name: Check New Commit
working-directory: "KitX Clients/KitX Dashboard/KitX Dashboard"
run: |
latest_commit_date=$(git show --pretty=format:"%cd" --date=iso | head -1)
py ../../ToolKits/Actions/check_new_commit.py "$latest_commit_date" 7
- name: Create Release and Upload Release Asset
uses: softprops/action-gh-release@v1
if: env.HAS_NEW_COMMIT == 'true'
with:
tag_name: v${{ env.version }}
name: Auto Build for KitX v${{ env.version }} on ${{ env.date }}
Expand Down

0 comments on commit 99325d8

Please sign in to comment.