Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Issues With Checks.yml workflow #130

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 8 additions & 22 deletions tier1/{{cookiecutter.project_slug}}/.github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "run-linting-checks"
on:
pull_request:
branches: [main, dev]

push:
branches:
- 'main'

jobs:
resolve-repolinter-json:
uses: DSACMS/repo-scaffolder/.github/workflows/extendJSONFile.yml@add-repolinter-workflows
uses: DSACMS/repo-scaffolder/.github/workflows/extendJSONFile.yml@main
with:
url_to_json: 'https://raw.githubusercontent.com/DSACMS/repo-scaffolder/main/tier1/%7B%7Bcookiecutter.project_slug%7D%7D/repolinter.json'

Expand All @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
env:
{% raw %}
RAW_JSON: ${{ needs.resolve-repolinter-json.outputs.raw-json}}
RAW_JSON: ${{ needs.resolve-repolinter-json.outputs.raw-json }}
{% endraw %}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -52,20 +52,6 @@ jobs:
# Default: "[Repolinter] Open Source Policy Issues"
output_name: '[Repolinter] Tier 1 Repository Hygiene Issue'

# The name to use for the issue label created by repolinter-action. This name
# should be unique to repolinter-action (i.e. not used by any other issue) to
# prevent repolinter-action from getting confused.
#
# This option will be ignored if output_type != "issue".
#
# Default: "repolinter"
label_name: 'cms-oss-tier1'

# The color to use for the issue label created by repolinter-action. The value
# for this option should be an unprefixed RRGGBB hex string (ex. ff568a).
# The default value is a shade of yellow.
#
# This option will be ignored if output_type != "issue".
#
# Default: "fbca04"
label_color: 'ff69b4'
# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
token: ${{ secrets.REPOLINTER_AUTO_TOKEN }}
28 changes: 7 additions & 21 deletions tier2/{{cookiecutter.project_slug}}/.github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "run-linting-checks"
on:
pull_request:
branches: [main, dev]

push:
branches:
- 'main'

jobs:
resolve-repolinter-json:
uses: DSACMS/repo-scaffolder/.github/workflows/extendJSONFile.yml@add-repolinter-workflows
uses: DSACMS/repo-scaffolder/.github/workflows/extendJSONFile.yml@main
with:
url_to_json: 'https://raw.githubusercontent.com/DSACMS/repo-scaffolder/main/tier2/%7B%7Bcookiecutter.project_slug%7D%7D/repolinter.json'

Expand Down Expand Up @@ -52,20 +52,6 @@ jobs:
# Default: "[Repolinter] Open Source Policy Issues"
output_name: '[Repolinter] Tier 2 Repository Hygiene Issue'

# The name to use for the issue label created by repolinter-action. This name
# should be unique to repolinter-action (i.e. not used by any other issue) to
# prevent repolinter-action from getting confused.
#
# This option will be ignored if output_type != "issue".
#
# Default: "repolinter"
label_name: 'cms-oss-tier2'

# The color to use for the issue label created by repolinter-action. The value
# for this option should be an unprefixed RRGGBB hex string (ex. ff568a).
# The default value is a shade of yellow.
#
# This option will be ignored if output_type != "issue".
#
# Default: "fbca04"
label_color: 'ff69b4'
# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
token: ${{ secrets.REPOLINTER_AUTO_TOKEN }}
28 changes: 7 additions & 21 deletions tier3/{{cookiecutter.project_slug}}/.github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "run-linting-checks"
on:
pull_request:
branches: [main, dev]

push:
branches:
- 'main'

jobs:
resolve-repolinter-json:
uses: DSACMS/repo-scaffolder/.github/workflows/extendJSONFile.yml@add-repolinter-workflows
uses: DSACMS/repo-scaffolder/.github/workflows/extendJSONFile.yml@main
with:
url_to_json: 'https://raw.githubusercontent.com/DSACMS/repo-scaffolder/main/tier3/%7B%7Bcookiecutter.project_slug%7D%7D/repolinter.json'

Expand Down Expand Up @@ -52,20 +52,6 @@ jobs:
# Default: "[Repolinter] Open Source Policy Issues"
output_name: '[Repolinter] Tier 3 Repository Hygiene Issue'

# The name to use for the issue label created by repolinter-action. This name
# should be unique to repolinter-action (i.e. not used by any other issue) to
# prevent repolinter-action from getting confused.
#
# This option will be ignored if output_type != "issue".
#
# Default: "repolinter"
label_name: 'cms-oss-tier3'

# The color to use for the issue label created by repolinter-action. The value
# for this option should be an unprefixed RRGGBB hex string (ex. ff568a).
# The default value is a shade of yellow.
#
# This option will be ignored if output_type != "issue".
#
# Default: "fbca04"
label_color: 'ff69b4'
# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
token: ${{ secrets.REPOLINTER_AUTO_TOKEN }}
28 changes: 7 additions & 21 deletions tier4/{{cookiecutter.project_slug}}/.github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "run-linting-checks"
on:
pull_request:
branches: [main, dev]

push:
branches:
- 'main'

jobs:
resolve-repolinter-json:
uses: DSACMS/repo-scaffolder/.github/workflows/extendJSONFile.yml@add-repolinter-workflows
uses: DSACMS/repo-scaffolder/.github/workflows/extendJSONFile.yml@main
with:
url_to_json: 'https://raw.githubusercontent.com/DSACMS/repo-scaffolder/main/tier4/%7B%7Bcookiecutter.project_slug%7D%7D/repolinter.json'

Expand Down Expand Up @@ -52,20 +52,6 @@ jobs:
# Default: "[Repolinter] Open Source Policy Issues"
output_name: '[Repolinter] Tier 4 Repository Hygiene Issue'

# The name to use for the issue label created by repolinter-action. This name
# should be unique to repolinter-action (i.e. not used by any other issue) to
# prevent repolinter-action from getting confused.
#
# This option will be ignored if output_type != "issue".
#
# Default: "repolinter"
label_name: 'cms-oss-tier4'

# The color to use for the issue label created by repolinter-action. The value
# for this option should be an unprefixed RRGGBB hex string (ex. ff568a).
# The default value is a shade of yellow.
#
# This option will be ignored if output_type != "issue".
#
# Default: "fbca04"
label_color: 'ff69b4'
# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
token: ${{ secrets.REPOLINTER_AUTO_TOKEN }}