Import Jobs #151
This file contains hidden or 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: Import Jobs | |
| on: | |
| schedule: | |
| # Daily at 09:17 UTC, leaving a buffer before the 12:00 UTC Slack digest. | |
| - cron: '17 9 * * 0-6' | |
| workflow_dispatch: | |
| jobs: | |
| import-jobs: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Import jobs | |
| env: | |
| GREENHOUSE_BOARDS: ${{ secrets.GREENHOUSE_BOARDS }} | |
| ASHBY_JOB_BOARDS: ${{ secrets.ASHBY_JOB_BOARDS }} | |
| run: npm run import:jobs | |
| - name: Commit and push changes | |
| run: | | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add jobs | |
| git diff --staged --quiet || git commit -m "docs: refresh imported jobs" | |
| git pull --rebase origin main | |
| git push | |
| # Slack job digests are now handled by the Hermes gateway cron job. | |
| # Keeping notification logic out of this workflow prevents duplicate posts | |
| # from the legacy ET's Bot webhook. |