Toot a dumb password rule #1129
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: Toot a dumb password rule | |
on: | |
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 | |
- name: Toot! | |
run: npm run toot |