Skip to content

Commit

Permalink
test no build 2
Browse files Browse the repository at this point in the history
  • Loading branch information
unitycoder authored Jan 20, 2025
1 parent 39275f4 commit 63d3763
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ jobs:
# Get the current date and time
- name: Get current date and time
id: datetime
if: env.build_trigger == 'true' # Only run if build was triggered
run: |
# Save the current date and time to an environment variable
echo "current_datetime=$(date +'%d/%m/%Y %H:%M')" >> $GITHUB_ENV
# Step to get previous tag and commits
- name: Get commits since last release
id: get_commits
if: env.build_trigger == 'true' # Only run if build was triggered
shell: bash
run: |
# Get the most recent tag
Expand All @@ -93,8 +95,8 @@ jobs:
# Create a release
- name: Create Release
id: create_release
uses: actions/create-release@latest
if: env.build_trigger == 'true' # Execute only if build was triggered
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -111,8 +113,8 @@ jobs:
# Upload the release asset
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
if: env.build_trigger == 'true' # Execute only if build was triggered
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit 63d3763

Please sign in to comment.