Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of ci: add conditional skip for docs changes into release/1.1.x #561

Conversation

hc-github-team-consul-core
Copy link
Collaborator

Backport

This PR is auto-generated from #560 to be assessed for backporting due to the inclusion of the label backport/1.1.

The below text is copied from the body of the original PR.


Similar to consul, skip build and tests if we're only changing docs.

This should help speed up releases and daily work quick-fixes.

❯ SKIP_CHECK_BRANCH=zalimeni/conditional-skip-ci GITHUB_OUTPUT="../GITHUB_OUTPUT" .github/scripts/check_skip_ci.sh
checking file: .changelog/100.txt
checking file: .github/scripts/check_skip_ci.sh
checking file: README.md
Changes detected in only documentation files - skipping tests and build

After adding a code change:

❯ SKIP_CHECK_BRANCH=zalimeni/conditional-skip-ci GITHUB_OUTPUT="../GITHUB_OUTPUT" .github/scripts/check_skip_ci.sh
checking file: .changelog/100.txt
checking file: .github/scripts/check_skip_ci.sh
checking file: README.md
checking file: cmd/consul-dataplane/main.go
non-skippable file changed: cmd/consul-dataplane/main.go
Changes detected in non-documentation files - will not skip tests and build

Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core merged commit 5a05ae4 into release/1.1.x Jun 17, 2024
29 of 30 checks passed
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/zalimeni/conditional-skip-ci/locally-tops-cow branch June 17, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants