Skip to content

Commit 22de2d5

Browse files
committed
update to work on feature branch with artifact uploaded for validation purposes
1 parent 8594bdb commit 22de2d5

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/generate_raw_content.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,33 @@ name: Generate Raw Content JSON
22

33
on:
44
workflow_dispatch:
5-
push:
5+
pull_request:
66
branches: [main]
77
paths:
88
- "scripts/generate_raw_content.rb"
99
- "content_catalog.json"
1010
- "**/*.md"
11+
push:
12+
branches: ["**"]
1113

1214
jobs:
1315
generate-raw-content:
1416
runs-on: ubuntu-latest
1517

1618
steps:
17-
- name: Checkout repository
18-
uses: actions/checkout@v4
19+
- uses: actions/checkout@v4
1920

20-
- name: Set up Ruby
21-
uses: ruby/setup-ruby@v1
21+
- uses: ruby/setup-ruby@v1
2222
with:
2323
ruby-version: "3.3"
2424

2525
- name: Generate raw_content.json
2626
run: ruby scripts/generate_raw_content.rb
2727

28-
- name: Upload artifact
28+
- name: Upload raw_content artifact
2929
uses: actions/upload-artifact@v4
3030
with:
31-
name: raw-content-json
31+
name: raw-content-json-${{ github.run_number }}
3232
path: raw_content.json
33+
if-no-files-found: error
34+
retention-days: 7

0 commit comments

Comments
 (0)