Skip to content

Commit

Permalink
test #GITBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
unitycoder authored Jan 20, 2025
1 parent eed9d9a commit 61e8412
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ jobs:
} else {
Write-Host 'No build commit. Skipping build steps...'
echo "build_trigger=false" >> $env:GITHUB_ENV
}
# Step to ensure the repository is checked out
- uses: actions/checkout@v2

# Conditional steps for building the project
- name: Conditional Build Steps
if: env.build_trigger == 'true'
run: echo "Build steps will proceed because commit contains #GITBUILD."
# Inform if build steps are skipped
- name: Inform Skipped Build Steps
if: env.build_trigger != 'true'
run: echo "Skipping build steps because the commit message does not contain #GITBUILD."

# Install 7Zip PowerShell module
- name: Install 7Zip PowerShell Module
Expand Down Expand Up @@ -79,7 +80,7 @@ jobs:
if [ "$PREV_TAG" = "none" ]; then
echo "No previous tag found, listing all commits"
COMMITS=$(git log --pretty=format:"* %s" --no-merges)
else
else:
echo "Previous tag: $PREV_TAG"
# List commits since last tag
COMMITS=$(git log $PREV_TAG..HEAD --pretty=format:"* %s" --no-merges)
Expand Down

0 comments on commit 61e8412

Please sign in to comment.