Skip to content

Commit 61e8412

Browse files
authored
test #GITBUILD
1 parent eed9d9a commit 61e8412

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/main.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ jobs:
3030
} else {
3131
Write-Host 'No build commit. Skipping build steps...'
3232
echo "build_trigger=false" >> $env:GITHUB_ENV
33+
}
3334
3435
# Step to ensure the repository is checked out
3536
- uses: actions/checkout@v2
3637

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

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

0 commit comments

Comments
 (0)