Skip to content

Commit

Permalink
chore(twios): use twios binary directly
Browse files Browse the repository at this point in the history
  • Loading branch information
BobrImperator committed Sep 21, 2023
1 parent 239df02 commit cdae488
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/twios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ jobs:
git config --global user.name "TWIOS Dev"
- name: Generate Comment
run: |
GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN ./twios/this-week.sh comment > comment.txt
GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN twios/this-week-in-open-source --config-path=config/this-week-in-open-source.config.json comment > comment.txt
- name: Generate TWIOS
run: GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN ./twios/this-week.sh
run: GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN twios/this-week-in-open-source --config-path=config/this-week-in-open-source.config.json
- name: Push new TWIOS
run: |
FORMATTED_DATE="$(date +"%Y-%m-%d")"
BRANCH_NAME="twios-$FORMATTED_DATE"
git checkout -b $BRANCH_NAME
git add **/*.md **/*.json && git commit -m "$BRANCH_NAME"
git push --set-upstream origin $BRANCH_NAME
gh pr create --base $TWIOS_BRANCH --head $BRANCH_NAME --title "TWIOS $FORMATTED_DATE" --body-file comment.txt
gh pr create -a emmasofiah2o --base $TWIOS_BRANCH --head $BRANCH_NAME --title "TWIOS $FORMATTED_DATE" --body-file comment.txt
edit_twios:
runs-on: ubuntu-latest
Expand All @@ -60,9 +60,9 @@ jobs:
git config --global user.name "TWIOS Dev"
- name: Read PR comment body
run: |
GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN ./twios/this-week.sh comment --comment="${{ github.event.pull_request.body }}"
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 }}"
- name: Generate TWIOS
run: GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN ./twios/this-week.sh -edit
run: GITHUB_PERSONAL_TOKEN=$GITHUB_TOKEN twios/this-week-in-open-source --config-path=config/this-week-in-open-source.config.json -edit
- name: Push updated TWIOS
run: |
git add **/*.md **/*.json && git commit -m "Edited $TWIOS_PR_REF"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"percy": "percy snapshot",
"crawl": "node scripts/crawl.js",
"gravityci": "gravityci",
"this-week": "./twios/this-week.sh"
"this-week": "twios/this-week-in-open-source --config-path=config/this-week-in-open-source.config.json"
},
"devDependencies": {
"@11ty/eleventy": "^2.0.0",
Expand Down
3 changes: 0 additions & 3 deletions twios/this-week.sh

This file was deleted.

0 comments on commit cdae488

Please sign in to comment.