|
1 | | -name: "run-linting-checks" |
| 1 | +name: "run-checks-and-deploy" |
2 | 2 | on: |
3 | 3 | push: |
4 | 4 | branches: |
5 | | - - 'main' |
| 5 | + - "main" |
| 6 | + |
| 7 | +permissions: |
| 8 | + contents: read |
| 9 | + pages: write |
| 10 | + id-token: write |
| 11 | + |
| 12 | +concurrency: |
| 13 | + group: pages |
| 14 | + cancel-in-progress: false |
6 | 15 |
|
7 | 16 | jobs: |
8 | | - resolve-repolinter-json: |
9 | | - uses: DSACMS/repo-scaffolder/.github/workflows/extendJSONFile.yml@main |
10 | | - with: |
11 | | - url_to_json: 'https://raw.githubusercontent.com/DSACMS/repo-scaffolder/main/tier3/%7B%7Bcookiecutter.project_slug%7D%7D/repolinter.json' |
12 | | - |
13 | | - repolinter-checks: |
14 | | - name: Tier 3 Checks |
15 | | - needs: resolve-repolinter-json |
| 17 | + deploy: |
16 | 18 | runs-on: ubuntu-latest |
17 | | - env: |
18 | | - |
19 | | - RAW_JSON: ${{ needs.resolve-repolinter-json.outputs.raw-json }} |
20 | | - |
21 | 19 | steps: |
22 | 20 | - uses: actions/checkout@v4 |
23 | | - - run: echo $RAW_JSON > repolinter.json |
24 | | - - uses: newrelic/repolinter-action@v1 |
| 21 | + |
| 22 | + - uses: actions/setup-node@v4 |
| 23 | + |
| 24 | + - name: Setup GitHub pages |
| 25 | + uses: actions/configure-pages@v5 |
| 26 | + |
| 27 | + - name: Upload artifact |
| 28 | + uses: actions/upload-pages-artifact@v3 |
25 | 29 | with: |
26 | | - # A path to the JSON/YAML Repolinter ruleset to use, relative to the workflow |
27 | | - # working directory (i.e. under `$GITHUB_WORKSPACE`). |
28 | | - # |
29 | | - # This option is mutually exclusive with config_url. If this option and |
30 | | - # config_url are not specified, Repolinter's default ruleset will be used. |
31 | | - config_file: 'repolinter.json' |
32 | | - |
33 | | - # Where repolinter-action should put the linting results. There are two |
34 | | - # options available: |
35 | | - # * "exit-code": repolinter-action will print the lint output to the console |
36 | | - # and set the exit code to result.passed. This output type is most useful for |
37 | | - # PR status checks. |
38 | | - # * "issue": repolinter-action will create a GitHub issue on the current |
39 | | - # repository with the repolinter output and always exit 0. See the README for |
40 | | - # more details on issue outputting behavior. This output type is ideal for |
41 | | - # non-intrusive notification. |
42 | | - # |
43 | | - # Default: "exit-code" |
44 | | - output_type: 'issue' |
45 | | - |
46 | | - # The title to use for the issue created by repolinter-action. This title |
47 | | - # should indicate the purpose of the issue, as well as that it was created by |
48 | | - # a bot. |
49 | | - # |
50 | | - # This option will be ignored if output_type != "issue". |
51 | | - # |
52 | | - # Default: "[Repolinter] Open Source Policy Issues" |
53 | | - output_name: '[Repolinter] Tier 3 Repository Hygiene Issue' |
54 | | - |
55 | | - # The default token is the repolinter token for the DSACMS org |
56 | | - # You can change it if needed. |
57 | | - |
58 | | - token: ${{ secrets.REPOLINTER_AUTO_TOKEN }} |
59 | | - |
| 30 | + path: ./ |
| 31 | + |
| 32 | + - name: Deploy to GitHub pages |
| 33 | + uses: actions/deploy-pages@v4 |
| 34 | + |
| 35 | + # resolve-repolinter-json: |
| 36 | + # uses: DSACMS/repo-scaffolder/.github/workflows/extendJSONFile.yml@main |
| 37 | + # with: |
| 38 | + # url_to_json: 'https://raw.githubusercontent.com/DSACMS/repo-scaffolder/main/tier3/%7B%7Bcookiecutter.project_slug%7D%7D/repolinter.json' |
| 39 | + |
| 40 | + # repolinter-checks: |
| 41 | + # name: Tier 3 Checks |
| 42 | + # needs: resolve-repolinter-json |
| 43 | + # runs-on: ubuntu-latest |
| 44 | + # env: |
| 45 | + |
| 46 | + # RAW_JSON: ${{ needs.resolve-repolinter-json.outputs.raw-json }} |
| 47 | + |
| 48 | + # steps: |
| 49 | + # - uses: actions/checkout@v4 |
| 50 | + # - run: echo $RAW_JSON > repolinter.json |
| 51 | + # - uses: newrelic/repolinter-action@v1 |
| 52 | + # with: |
| 53 | + # # A path to the JSON/YAML Repolinter ruleset to use, relative to the workflow |
| 54 | + # # working directory (i.e. under `$GITHUB_WORKSPACE`). |
| 55 | + # # |
| 56 | + # # This option is mutually exclusive with config_url. If this option and |
| 57 | + # # config_url are not specified, Repolinter's default ruleset will be used. |
| 58 | + # config_file: 'repolinter.json' |
| 59 | + |
| 60 | + # # Where repolinter-action should put the linting results. There are two |
| 61 | + # # options available: |
| 62 | + # # * "exit-code": repolinter-action will print the lint output to the console |
| 63 | + # # and set the exit code to result.passed. This output type is most useful for |
| 64 | + # # PR status checks. |
| 65 | + # # * "issue": repolinter-action will create a GitHub issue on the current |
| 66 | + # # repository with the repolinter output and always exit 0. See the README for |
| 67 | + # # more details on issue outputting behavior. This output type is ideal for |
| 68 | + # # non-intrusive notification. |
| 69 | + # # |
| 70 | + # # Default: "exit-code" |
| 71 | + # output_type: 'issue' |
| 72 | + |
| 73 | + # # The title to use for the issue created by repolinter-action. This title |
| 74 | + # # should indicate the purpose of the issue, as well as that it was created by |
| 75 | + # # a bot. |
| 76 | + # # |
| 77 | + # # This option will be ignored if output_type != "issue". |
| 78 | + # # |
| 79 | + # # Default: "[Repolinter] Open Source Policy Issues" |
| 80 | + # output_name: '[Repolinter] Tier 3 Repository Hygiene Issue' |
| 81 | + |
| 82 | + # # The default token is the repolinter token for the DSACMS org |
| 83 | + # # You can change it if needed. |
| 84 | + |
| 85 | + # token: ${{ secrets.REPOLINTER_AUTO_TOKEN }} |
0 commit comments