Create Post #477
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: Create Post | |
on: | |
# Triggers the workflow every 4 hours | |
schedule: | |
- cron: "0 */4 * * *" | |
workflow_dispatch: | |
jobs: | |
cron: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm install | |
- name: Run the app | |
env: | |
BLUESKY_USERNAME: ${{ secrets.BLUESKY_USERNAME }} | |
BLUESKY_PASSWORD: ${{ secrets.BLUESKY_PASSWORD }} | |
URL: ${{ secrets.URL }} | |
run: node index.js |