We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 19cee4d + 785d42f commit 81b6b71Copy full SHA for 81b6b71
.github/workflows/toc-generator_push.yaml
@@ -22,14 +22,14 @@ jobs:
22
fi
23
24
default_branch="${{ github.event.repository.default_branch }}"
25
-
26
- if [[ "$target_branch" != "$default_branch" ]]; then
+
+ if [[ "$target_branch" == "$default_branch" ]]; then
27
+ echo "::notice::Branch check passed."
28
+ echo "passed=1" >> "$GITHUB_OUTPUT"
29
+ else
30
echo "::notice::This is not the default branch. ($default_branch)"
31
echo "Target branch: $target_branch"
32
echo "Default branch: $default_branch"
- echo "passed=1" >> "$GITHUB_OUTPUT"
- else
- echo "::notice::Branch check passed."
33
34
35
validate-commit-message:
0 commit comments