From 3ecc33ec8729c1aa604b209015c0f076d786faf4 Mon Sep 17 00:00:00 2001 From: BobrImperator Date: Sat, 14 Oct 2023 17:53:03 +0200 Subject: [PATCH] chore(twios): add linting --- .github/workflows/twios.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/twios.yaml b/.github/workflows/twios.yaml index 9cf0fe53e4..f4c40134eb 100644 --- a/.github/workflows/twios.yaml +++ b/.github/workflows/twios.yaml @@ -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 @@ -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")" @@ -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 @@ -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"