mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Fix skipci CI/CD skip feature in GitHub Actions workflow
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com> Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/e765016c-a3e8-4423-b21c-b05ec19cb97a
This commit is contained in:
parent
779de6c996
commit
4efe75174e
1 changed files with 10 additions and 2 deletions
12
.github/workflows/build-and-release.yml
vendored
12
.github/workflows/build-and-release.yml
vendored
|
|
@ -14,7 +14,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ always() && needs.fetch-translations.result != 'failure' }}
|
if: ${{ always() && needs.fetch-translations.result != 'failure' && needs.determine-build.result != 'skipped' }}
|
||||||
needs: [determine-build, fetch-translations]
|
needs: [determine-build, fetch-translations]
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -148,7 +148,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
if: ${{ !contains(github.event.head_commit.message, 'skip') || !contains(github.event.head_commit.message, 'skipci')}}
|
if: >-
|
||||||
|
${{
|
||||||
|
!contains(github.event.head_commit.message, 'skipci') &&
|
||||||
|
!contains(github.event.head_commit.message, '[skipci]') &&
|
||||||
|
!contains(github.event.head_commit.message, 'skipci | ') &&
|
||||||
|
!contains(github.event.pull_request.title, 'skipci') &&
|
||||||
|
!contains(github.event.pull_request.title, '[skipci]') &&
|
||||||
|
!contains(github.event.pull_request.title, 'skipci | ')
|
||||||
|
}}
|
||||||
steps:
|
steps:
|
||||||
- name: dummy action
|
- name: dummy action
|
||||||
run: "echo 'dummy action that checks if the build is to be skipped, if it is, this action does not run to break the entire build action'"
|
run: "echo 'dummy action that checks if the build is to be skipped, if it is, this action does not run to break the entire build action'"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue