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

Figure out how skip ci for non code changes #111

Open
davecramer opened this issue May 25, 2021 · 0 comments
Open

Figure out how skip ci for non code changes #111

davecramer opened this issue May 25, 2021 · 0 comments

Comments

@davecramer
Copy link
Collaborator

No description provided.

AndreMikulec added a commit to AndreMikulec/plr that referenced this issue May 28, 2021
…stgres-plr#111

Appveyor - *.md
https://www.appveyor.com/docs/how-to/filtering-commits/
```
Commit files (GitHub and Bitbucket only)
Skip commits . . .
skip_commits.files allows skipping AppVeyor build
if all of the files modified in push’s head commit match any of the file matching rules.
```

Travis - *.md
https://reflectoring.io/skip-ci-build/
```
script for Travis CI on GitHub and modified it
creates a diff of all commits and exits the build if it only includes markdown files
```
Note, I could not test travis.org.
I am not allowed to add branches.
Travis.org claims to shut down before the end of May.

Github Actions - *.md
https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
```
paths-ignore . . .
When using the push and pull_request events,
you can, configure a workflow to run, when at least one file does not match
paths-ignore, or at least one modified file matches the configured paths.

```
Github Actions - [skip actions]
This custom solution is not restricted by "web hook event payload" ("push", "pull_request")
https://dev.to/epassaro/use-skip-ci-in-github-actions-1mnf
```
If you want to just check the latest commit, change it to:
```
```
if: "!contains(github.event.head_commit.message, '[ci skip]')"
```

Summary of directly asking to skip the build
 * Appveyor                - [skip ci], [skip appveyor]
 * Github Actions (custom) - [skip ci], [skip actions], [skip github actions]
 * Travis                  - [skip ci], [skip travis]

Tested at . .
https://github.com/AndreMikulec/plr/tree/master_no_run_skip_ci_or_only_change_in_md_dev
(eventually) non-runs (ignored runs) at . . .
https://ci.appveyor.com/project/AndreMikulec/plr/history
and (eventually) non-runs (ignored runs) at . . .
https://github.com/AndreMikulec/plr/actions?query=branch%3Amaster_no_run_skip_ci_or_only_change_in_md_dev

Issue Fix postgres-plr#111
AndreMikulec added a commit to AndreMikulec/plr that referenced this issue May 28, 2021
postgres-plr#111

Appveyor - *.md
https://www.appveyor.com/docs/how-to/filtering-commits/
```
Commit files (GitHub and Bitbucket only)
Skip commits . . .
skip_commits.files allows skipping AppVeyor build
if all of the files modified in push’s head commit match any of the file matching rules.
```

Travis - *.md
https://reflectoring.io/skip-ci-build/
```
script for Travis CI on GitHub and modified it
creates a diff of all commits and exits the build if it only includes markdown files
```
Note, I could not test travis.org.
I am not allowed to add branches.
Travis.org claims to shut down before the end of May.

Github Actions - *.md
https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
```
paths-ignore . . .
When using the push and pull_request events,
you can, configure a workflow to run, when at least one file does not match
paths-ignore, or at least one modified file matches the configured paths.

```
Github Actions - [skip actions]
This custom solution is not restricted by "web hook event payload" ("push", "pull_request")
https://dev.to/epassaro/use-skip-ci-in-github-actions-1mnf
```
If you want to just check the latest commit, change it to:
```
```
if: "!contains(github.event.head_commit.message, '[ci skip]')"
```

Summary of directly asking to skip the build
 * Appveyor                - [skip ci], [skip appveyor]
 * Github Actions (custom) - [skip ci], [skip actions], [skip github actions]
 * Travis                  - [skip ci], [skip travis]

Tested at . .
https://github.com/AndreMikulec/plr/tree/master_no_run_skip_ci_or_only_change_in_md_dev
(eventually) non-runs (ignored runs) at . . .
https://ci.appveyor.com/project/AndreMikulec/plr/history
and (eventually) non-runs (ignored runs) at . . .
https://github.com/AndreMikulec/plr/actions?query=branch%3Amaster_no_run_skip_ci_or_only_change_in_md_dev

Issue Fix postgres-plr#111
AndreMikulec added a commit to AndreMikulec/plr that referenced this issue May 28, 2021
AndreMikulec added a commit to AndreMikulec/plr that referenced this issue May 28, 2021
…ostgres-plr#111

Note
```
[skip ci] appearing in the "extended description": ignored by Appveyor, read by Github Actions
```
Therefore, this pull request will build on Appveyor.

Appveyor - *.md
https://www.appveyor.com/docs/how-to/filtering-commits/
```
Commit files (GitHub and Bitbucket only)
Skip commits . . .
skip_commits.files allows skipping AppVeyor build
if all of the files modified in push’s head commit match any of the file matching rules.
```

Travis - *.md
https://reflectoring.io/skip-ci-build/
```
script for Travis CI on GitHub and modified it
creates a diff of all commits and exits the build if it only includes markdown files
```
Note, I could not test travis.org.
I am not allowed to add branches.
Travis.org claims to shut down before the end of May.

Github Actions - *.md
https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
```
paths-ignore . . .
When using the push and pull_request events,
you can, configure a workflow to run, when at least one file does not match
paths-ignore, or at least one modified file matches the configured paths.

```
Github Actions - [skip actions]
This custom solution is not restricted by "web hook event payload" ("push", "pull_request")
https://dev.to/epassaro/use-skip-ci-in-github-actions-1mnf
```
If you want to just check the latest commit, change it to:
```
```
if: "!contains(github.event.head_commit.message, '[ci skip]')"
```

Summary of directly asking to skip the build
 * Appveyor                - [skip ci], [skip appveyor]
 * Github Actions (custom) - [skip ci], [skip actions], [skip github actions]
 * Travis                  - [skip ci], [skip travis]

Tested at . .
https://github.com/AndreMikulec/plr/tree/master_no_run_skip_ci_or_only_change_in_md_dev
(eventually) non-runs (ignored runs) at . . .
https://ci.appveyor.com/project/AndreMikulec/plr/history
and (eventually) non-runs (ignored runs) at . . .
https://github.com/AndreMikulec/plr/actions?query=branch%3Amaster_no_run_skip_ci_or_only_change_in_md_dev

Issue Fix postgres-plr#111
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 a pull request may close this issue.

1 participant