diff --git a/.github/workflows/twios.yaml b/.github/workflows/twios.yaml index 3a58ad3acb..673c3175ac 100644 --- a/.github/workflows/twios.yaml +++ b/.github/workflows/twios.yaml @@ -31,12 +31,10 @@ jobs: git config --global user.email "twios@twios_test_dev.com" git config --global user.name "TWIOS Dev" - name: Generate Comment - shell: bash run: | - GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN ./bin/this-week.sh comment + GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN ./twios/this-week.sh comment - name: Generate TWIOS - shell: bash - run: GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN ./bin/this-week.sh + run: GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN ./twios/this-week.sh - name: Push new TWIOS run: | FORMATTED_DATE="$(date +"%Y-%m-%d")" @@ -60,12 +58,10 @@ jobs: git config --global user.email "twios@twios_test_dev.com" git config --global user.name "TWIOS Dev" - name: Read PR comment body - shell: bash run: | - GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN bash bin/this-week.sh comment --comment="${{ github.event.pull_request.body }}" + GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN ./twios/this-week.sh comment --comment="${{ github.event.pull_request.body }}" - name: Generate TWIOS - shell: bash - run: GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN bash bin/this-week.sh -edit + run: GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN ./twios/this-week.sh -edit - name: Push updated TWIOS run: | git add **/*.md **/*.json && git commit -m "Edited $TWIOS_PR_REF" diff --git a/bin/this-week.sh b/bin/this-week.sh deleted file mode 100755 index 035560a929..0000000000 --- a/bin/this-week.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -pwd - -ls -la - -./bin/this-week-in-open-source --config-path=config/this-week-in-open-source.config.json diff --git a/package.json b/package.json index 1b31939269..27e523ce16 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "percy": "percy snapshot", "crawl": "node scripts/crawl.js", "gravityci": "gravityci", - "this-week": "bash bin/this-week.sh" + "this-week": "./twios/this-week.sh" }, "devDependencies": { "@11ty/eleventy": "^2.0.0", diff --git a/bin/this-week-in-open-source b/twios/this-week-in-open-source similarity index 100% rename from bin/this-week-in-open-source rename to twios/this-week-in-open-source diff --git a/twios/this-week.sh b/twios/this-week.sh new file mode 100755 index 0000000000..81905ead04 --- /dev/null +++ b/twios/this-week.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +ls + +chmod +x twios/this-week-in-open-source + +twios/this-week-in-open-source --config-path=config/this-week-in-open-source.config.json