Skip to content

Commit

Permalink
feat: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
Browse files Browse the repository at this point in the history
  • Loading branch information
FairyEver committed Sep 16, 2023
1 parent 4792a57 commit 40d1ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
publish:
if: ! contains(github.event.head_commit.message, '[skip ci]')
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

1 comment on commit 40d1ed1

@luoliaomei
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jobs:
publish:
if: ! contains(github.event.head_commit.message, '[skip ci]')
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

!TRICKY

https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/td-p/38085

always_job:
name: Always run job
runs-on: ubuntu-latest
steps:
- name: Always run
run: echo "TRICKY run"

Please sign in to comment.