From 93cebfe9ac444abdb296a655b5f24b3f4c0c8b75 Mon Sep 17 00:00:00 2001 From: BobrImperator Date: Thu, 21 Sep 2023 16:54:33 +0200 Subject: [PATCH] feat: rename bin/ to twios/ --- .github/workflows/twios.yaml | 12 ++++-------- bin/this-week.sh | 7 ------- package.json | 2 +- {bin => twios}/this-week-in-open-source | Bin twios/this-week.sh | 7 +++++++ 5 files changed, 12 insertions(+), 16 deletions(-) delete mode 100755 bin/this-week.sh rename {bin => twios}/this-week-in-open-source (100%) create mode 100755 twios/this-week.sh 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