File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,31 +2,33 @@ name: Generate Raw Content JSON
22
33on :
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
1214jobs :
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
You can’t perform that action at this time.
0 commit comments