|
| 1 | +name: "run-checks-and-deploy" |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: |
| 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 |
| 15 | + |
| 16 | +jobs: |
| 17 | + deploy: |
| 18 | + runs-on: ubuntu-latest |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v4 |
| 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 |
| 29 | + with: |
| 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