Toot a dumb password rule #1328
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: | |
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 |