Skip to content

Commit cbe0d7b

Browse files
Refactor check
1 parent a8f7d85 commit cbe0d7b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/check-build-deploy.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ jobs:
217217
run: uv run -- ruff check --no-fix --output-format=github
218218

219219
build-and-publish:
220+
if: |
221+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name== 'CSSUoB/TeX-Bot-Py-V2') ||
222+
(github.event_name == 'push' && github.repository == 'CSSUoB/TeX-Bot-Py-V2')
220223
runs-on: ubuntu-latest
221224
environment: publish
222225
needs: [mypy, pre-commit, prevent-migrations-deletion, pymarkdown, pytest, ruff-lint, uv-check]
@@ -275,11 +278,7 @@ jobs:
275278
contents: write
276279
id-token: write
277280

278-
if: |
279-
github.ref_type == 'tag' && (
280-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'CSSUoB/TeX-Bot-Py-V2') ||
281-
(github.event_name == 'push' && github.repository == 'CSSUoB/TeX-Bot-Py-V2')
282-
)
281+
if: github.ref_type == 'tag'
283282

284283
steps:
285284
- name: Create GitHub Release

0 commit comments

Comments
 (0)