Skip to content

Commit

Permalink
ci: remove unnecessary condition
Browse files Browse the repository at this point in the history
Remove the unnecessary condition in the preview workflow to allow the workflow to run on any push or pull request to the EvanNotFound/hexo-theme-redefine repository.
  • Loading branch information
EvanNotFound committed May 29, 2024
1 parent f12642b commit 7d82d5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ on:
jobs:
Deploy-Preview:
runs-on: ubuntu-latest
if: >
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && github.repository == 'EvanNotFound/hexo-theme-redefine') ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'EvanNotFound/hexo-theme-redefine')
# if: >
# github.event_name == 'workflow_dispatch' ||
# (github.event_name == 'push' && github.repository == 'EvanNotFound/hexo-theme-redefine') ||
# (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'EvanNotFound/hexo-theme-redefine')
steps:
- id: script
uses: actions/github-script@v3
Expand Down

0 comments on commit 7d82d5b

Please sign in to comment.