Skip to content

Commit 991561f

Browse files
Merge pull request #5363 from KrystalDelusion/krys/yosyshq-only-jobs
2 parents 93dca50 + 6f7cd63 commit 991561f

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.github/workflows/prepare-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# docs builds are needed for anything on main, any tagged versions, and any tag
2727
# or branch starting with docs-preview
2828
needs: check_docs_rebuild
29-
if: ${{ needs.check_docs_rebuild.outputs.should_skip != 'true' }}
29+
if: ${{ needs.check_docs_rebuild.outputs.should_skip != 'true' && github.repository == 'YosysHQ/Yosys' }}
3030
runs-on: [self-hosted, linux, x64, fast]
3131
steps:
3232
- name: Checkout Yosys

.github/workflows/test-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ jobs:
253253
name: Try build docs
254254
runs-on: [self-hosted, linux, x64, fast]
255255
needs: [pre_docs_job]
256-
if: needs.pre_docs_job.outputs.should_skip != 'true'
256+
if: ${{ needs.pre_docs_job.outputs.should_skip != 'true' && github.repository == 'YosysHQ/Yosys' }}
257257
strategy:
258258
matrix:
259259
docs-target: [html, latexpdf]

.github/workflows/test-verific.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
test-verific:
2929
needs: pre-job
30-
if: needs.pre-job.outputs.should_skip != 'true'
30+
if: ${{ needs.pre-job.outputs.should_skip != 'true' && github.repository == 'YosysHQ/Yosys' }}
3131
runs-on: [self-hosted, linux, x64, fast]
3232
steps:
3333
- name: Checkout Yosys

.github/workflows/update-flake-lock.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
jobs:
88
lockfile:
9+
if: github.repository == 'YosysHQ/Yosys'
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Checkout repository

.github/workflows/version.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
bump-version:
10+
if: github.repository == 'YosysHQ/Yosys'
1011
runs-on: ubuntu-latest
1112
steps:
1213
- name: Checkout
@@ -18,19 +19,16 @@ jobs:
1819
- name: Take last commit
1920
id: log
2021
run: echo "message=$(git log --no-merges -1 --oneline)" >> $GITHUB_OUTPUT
21-
- name: Take repository
22-
id: repo
23-
run: echo "message=$GITHUB_REPOSITORY" >> $GITHUB_OUTPUT
2422
- name: Bump version
25-
if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'YosysHQ/yosys')"
23+
if: ${{ !contains(steps.log.outputs.message, 'Bump version') }}
2624
run: |
2725
make bumpversion
2826
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
2927
git config --local user.name "github-actions[bot]"
3028
git add Makefile
3129
git commit -m "Bump version"
3230
- name: Push changes # push the output folder to your repo
33-
if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'YosysHQ/yosys')"
31+
if: ${{ !contains(steps.log.outputs.message, 'Bump version') }}
3432
uses: ad-m/github-push-action@master
3533
with:
3634
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/wheels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ jobs:
124124
path: ./wheelhouse/*.whl
125125
upload_wheels:
126126
name: Upload Wheels
127+
if: github.repository == 'YosysHQ/Yosys'
127128
runs-on: ubuntu-latest
128129
# Specifying a GitHub environment is optional, but strongly encouraged
129130
environment: pypi

0 commit comments

Comments
 (0)