Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
Signed-off-by: thxCode <thxcode0824@gmail.com>
  • Loading branch information
thxCode committed Dec 28, 2023
1 parent 9c8cdea commit 1d339b2
Showing 1 changed file with 15 additions and 29 deletions.
44 changes: 15 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,30 @@ defaults:
shell: bash

on:
workflow_dispatch: { }
push:
branches:
- "main"
- "release/*"
tags:
- "v*.*.*"
branches:
- "main"
paths-ignore:
- "docs/**"
- "**.md"
- "**.mdx"
- "**.png"
- "**.jpg"
pull_request:
branches:
- "main"
- "release/*"
workflow_dispatch: {}
paths-ignore:
- "docs/**"
- "**.md"
- "**.mdx"
- "**.png"
- "**.jpg"

jobs:
skip:
timeout-minutes: 5
runs-on: ubuntu-22.04
permissions:
contents: read
pull-requests: read
actions: write
outputs:
should: ${{ steps.duplicate.outputs.should_skip }}
steps:
- name: Check Duplicate
id: duplicate
uses: fkirc/skip-duplicate-actions@v5
with:
github_token: "${{ github.token }}"
paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]'
do_not_skip: '["workflow_dispatch", "release"]'
continue-on-error: true

build:
needs:
- skip
if: needs.skip.outputs.should != 'true'
timeout-minutes: 60
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -94,8 +82,6 @@ jobs:
publish:
needs:
- build
- skip
if: needs.skip.outputs.should != 'true'
permissions:
contents: write
actions: read
Expand Down

0 comments on commit 1d339b2

Please sign in to comment.