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

chore(twios): add linting #2149

Merged
merged 1 commit into from
Oct 14, 2023
Merged
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
10 changes: 10 additions & 0 deletions .github/workflows/twios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
if: ${{!github.event.pull_request.body && github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'create-twios'}}
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4
with:
registry-url: "https://registry.npmjs.org"
- name: Fetch $TWIOS_BRANCH
run: |
git fetch origin $TWIOS_BRANCH
Expand All @@ -34,8 +37,10 @@ jobs:
- name: Generate Comment
run: |
GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN twios/this-week-in-open-source --config-path=config/this-week-in-open-source.config.json comment > comment.txt
- run: yarn install
- name: Generate TWIOS
run: GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN twios/this-week-in-open-source --config-path=config/this-week-in-open-source.config.json
- run: yarn lint:fix
- name: Push new TWIOS
run: |
FORMATTED_DATE="$(date +"%Y-%m-%d")"
Expand All @@ -50,6 +55,9 @@ jobs:
if: ${{github.event.pull_request.body && contains(github.event.pull_request.head.ref, 'twios') || github.event.label.name == 'edit-twios'}}
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4
with:
registry-url: "https://registry.npmjs.org"
- name: Fetch $TWIOS_PR_REF
run: |
git fetch origin $TWIOS_PR_REF
Expand All @@ -61,8 +69,10 @@ jobs:
- name: Read PR comment body
run: |
GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN twios/this-week-in-open-source --config-path=config/this-week-in-open-source.config.json comment --comment="${{ github.event.pull_request.body }}"
- run: yarn install
- name: Generate TWIOS
run: GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN twios/this-week-in-open-source --config-path=config/this-week-in-open-source.config.json -edit
- run: yarn lint:fix
- name: Push updated TWIOS
run: |
git add **/*.md **/*.json && git commit -m "Edited $TWIOS_PR_REF"
Expand Down
Loading