Skip to content

Commit

Permalink
Merge pull request #2149 from mainmatter/2148-autofix-this-week-posts
Browse files Browse the repository at this point in the history
chore(twios): add linting
  • Loading branch information
BobrImperator authored Oct 14, 2023
2 parents 859ab7c + 3ecc33e commit 0b458e0
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit 0b458e0

Please sign in to comment.