Sync Issues #15241
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: Sync Issues | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- development | |
paths-ignore: | |
- "*.json" | |
- "**.json" | |
- "**/*.json" | |
schedule: | |
- cron: "*/15 * * * *" # every 15 minutes | |
jobs: | |
sync-issues: | |
name: Sync Issues | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.10.0" | |
- name: Yarn Install | |
run: yarn install --mode=skip-build | |
- name: Get GitHub App token | |
uses: tibdex/[email protected] | |
id: get_installation_token | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
- name: Sync Issues | |
env: | |
DEVPOOL_GITHUB_API_TOKEN: ${{ steps.get_installation_token.outputs.token }} | |
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }} | |
TWITTER_API_KEY_SECRET: ${{ secrets.TWITTER_API_KEY_SECRET }} | |
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} | |
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | |
DEVPOOL_OWNER_NAME: ${{ github.repository_owner }} | |
DEVPOOL_REPO_NAME: "devpool-directory" | |
run: npx tsx index.ts |