Skip to content

Toot a dumb password rule #1335

Toot a dumb password rule

Toot a dumb password rule #1335

name: Toot a dumb password rule
on:
workflow_dispatch:
schedule:
- cron: "37 2,14 * * *"
jobs:
build:
runs-on: ubuntu-latest
name: Toot a dumb password rule
if: ${{ github.repository == 'duffn/dumb-password-rules' }}
defaults:
run:
working-directory: .github/bot
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Create env file
run: |
touch .env
echo MASTODON_API_ACCESS_TOKEN=${{ secrets.MASTODON_API_ACCESS_TOKEN }} >> .env
echo MASTODON_URL=${{ secrets.MASTODON_URL }} >> .env
- name: Toot!
run: npm run toot