-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8660d97
commit afb4ec7
Showing
1 changed file
with
25 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,34 @@ | ||
name: Run bot | ||
|
||
on: | ||
schedule: | ||
- cron: "0 18 * * *" # This will run the workflow at 18:00 (6:00 PM UTC) daily | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18.17.0" # Specify the Node.js version | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run bot | ||
run: node bot.js | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} # Pass the GitHub token to your script | ||
|
||
IGNORE_FILES: "readme.md,license.md,PULL_REQUEST_TEMPLATE.md" # List of files to ignore | ||
|
||
TRANSLATED_OWNER: "kamp-us" # Owner of the translated repository | ||
TRANSLATED_REPO: "monorepo" # Name of the translated repository | ||
TRANSLATED_SUBDIRECTORY: "content/odin/" # Name of the translated subdirectory (if any, otherwise leave blank) | ||
TRANSLATED_BRANCH: "dev" # Name of the branch to compare with | ||
|
||
ORIGINAL_OWNER: "TheOdinProject" # Owner of the original repository | ||
ORIGINAL_REPO: "curriculum" # Name of the original repository | ||
ORIGINAL_SUBDIRECTORY: "" # Name of the original subdirectory (if any, otherwise leave blank) | ||
ORIGINAL_BRANCH: "main" # Name of the branch to compare with | ||
|
||
ISSUE_LABEL: "content/odin" # Label to add to the issue | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18.17.0" # Specify the Node.js version | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Run bot | ||
run: node bot.js | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} # Pass the GitHub token to your script | ||
|
||
IGNORE_FILES: "readme.md,license.md,PULL_REQUEST_TEMPLATE.md" # List of files to ignore | ||
|
||
TRANSLATED_OWNER: "kamp-us" # Owner of the translated repository | ||
TRANSLATED_REPO: "monorepo" # Name of the translated repository | ||
TRANSLATED_SUBDIRECTORY: "content/odin/" # Name of the translated subdirectory (if any, otherwise leave blank) | ||
TRANSLATED_BRANCH: "dev" # Name of the branch to compare with | ||
|
||
ORIGINAL_OWNER: "TheOdinProject" # Owner of the original repository | ||
ORIGINAL_REPO: "curriculum" # Name of the original repository | ||
ORIGINAL_SUBDIRECTORY: "" # Name of the original subdirectory (if any, otherwise leave blank) | ||
ORIGINAL_BRANCH: "main" # Name of the branch to compare with | ||
|
||
ISSUE_LABEL: "content/odin" # Label to add to the issue |