Skip to content

Commit f7753c8

Browse files
kbabbittsvgeesus
authored andcommitted
Only run publish workflows on w3c/csswg-drafts, not forks
1 parent 3b58d7f commit f7753c8

File tree

8 files changed

+8
-1
lines changed

8 files changed

+8
-1
lines changed

.github/auto-publish-template.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
jobs:
2121
publish-TR-{{shortname}}:
2222
name: Publish {{shortname}}
23+
if: github.repository == 'w3c/csswg-drafts'
2324
runs-on: ubuntu-latest
2425
steps:
2526
- uses: actions/checkout@v6

.github/generate-auto-publish-workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def main():
9494

9595
# Write workflow file
9696
filename = workflows_dir / f"{spec['shortname']}.yml"
97-
filename.write_text(content, encoding="utf-8")
97+
filename.write_text(content, encoding="utf-8", newline="\n")
9898
print(f"Generated {filename}")
9999

100100

.github/workflows/build-specs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ concurrency:
1717

1818
jobs:
1919
build-specs:
20+
if: github.repository == 'w3c/csswg-drafts'
2021
runs-on: ubuntu-latest
2122

2223
environment:

.github/workflows/css-color-4.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121
jobs:
2222
publish-TR-css-color-4:
2323
name: Publish css-color-4
24+
if: github.repository == 'w3c/csswg-drafts'
2425
runs-on: ubuntu-latest
2526
steps:
2627
- uses: actions/checkout@v6

.github/workflows/css-color-5.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121
jobs:
2222
publish-TR-css-color-5:
2323
name: Publish css-color-5
24+
if: github.repository == 'w3c/csswg-drafts'
2425
runs-on: ubuntu-latest
2526
steps:
2627
- uses: actions/checkout@v6

.github/workflows/css-color-hdr-1.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121
jobs:
2222
publish-TR-css-color-hdr-1:
2323
name: Publish css-color-hdr-1
24+
if: github.repository == 'w3c/csswg-drafts'
2425
runs-on: ubuntu-latest
2526
steps:
2627
- uses: actions/checkout@v6

.github/workflows/css-fonts-4.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121
jobs:
2222
publish-TR-css-fonts-4:
2323
name: Publish css-fonts-4
24+
if: github.repository == 'w3c/csswg-drafts'
2425
runs-on: ubuntu-latest
2526
steps:
2627
- uses: actions/checkout@v6

.github/workflows/css-fonts-5.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121
jobs:
2222
publish-TR-css-fonts-5:
2323
name: Publish css-fonts-5
24+
if: github.repository == 'w3c/csswg-drafts'
2425
runs-on: ubuntu-latest
2526
steps:
2627
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)