Skip to content

Commit e1e57ad

Browse files
committed
build: update condition now that workflows are not triggered by merged PRs anymore
1 parent a73473e commit e1e57ad

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/markdown_equations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
# Define a display name:
4343
name: 'Update equations'
4444

45-
# Only run this job if the pull request was merged and did not have label `automated-pr`:
46-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'automated-pr') == false
45+
# Ensure the job does not run on forks:
46+
if: github.repository == 'stdlib-js/stdlib'
4747

4848
# Define the type of virtual host machine:
4949
runs-on: ubuntu-latest

.github/workflows/markdown_tocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
# Define a display name:
4343
name: 'Update namespace ToCs'
4444

45-
# Only run this job if the pull request was merged and did not have label `automated-pr` (or the job was triggered manually):
46-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'automated-pr') == false || github.event_name == 'workflow_dispatch'
45+
# Ensure the job does not run on forks:
46+
if: github.repository == 'stdlib-js/stdlib'
4747

4848
# Define the type of virtual host machine:
4949
runs-on: ubuntu-latest

.github/workflows/namespace_declarations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
# Define a display name:
4343
name: 'Update TypeScript Declarations'
4444

45-
# Only run this job if the pull request was merged and did not have label `automated-pr` (or the job was triggered manually):
46-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'automated-pr') == false || github.event_name == 'workflow_dispatch'
45+
# Ensure the job does not run on forks:
46+
if: github.repository == 'stdlib-js/stdlib'
4747

4848
# Define the type of virtual host machine:
4949
runs-on: ubuntu-latest

.github/workflows/namespace_exports.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
# Define a display name:
3939
name: 'Update Namespace Exports'
4040

41-
# Only run this job if the pull request was merged and did not have label `automated-pr` (or the job was triggered manually):
42-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'automated-pr') == false || github.event_name == 'workflow_dispatch'
41+
# Ensure the job does not run on forks:
42+
if: github.repository == 'stdlib-js/stdlib'
4343

4444
# Define the type of virtual host machine:
4545
runs-on: ubuntu-latest

.github/workflows/update_repl_docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
# Define a display name:
4343
name: 'Update REPL docs'
4444

45-
# Only run this job if the pull request was merged (or the job was triggered manually):
46-
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
45+
# Ensure the job does not run on forks:
46+
if: github.repository == 'stdlib-js/stdlib'
4747

4848
# Define the type of virtual host machine:
4949
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)