Run bot #57
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
name: Run bot | |
on: | |
schedule: | |
- cron: '0 */12 * * *' # This will run the workflow every 12 hours | |
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' # List of files to ignore | |
OWNER: 'kamp-us' # Owner of the translated repository | |
REPO: 'turkce-odin-project' # Name of the translated repository | |
BRANCH: 'main' # Name of the branch to compare with | |
ORIGINAL_OWNER: 'TheOdinProject' # Owner of the original repository | |
ORIGINAL_REPO: 'curriculum' # Name of the original repository | |
ORIGINAL_BRANCH: 'main' # Name of the branch to compare with |