Skip to content

Update

Update #5

Workflow file for this run

name: Update
on:
workflow_dispatch:
schedule:
# “At 00:00 on day-of-month 1.” https://crontab.guru/#0_0_1_*_*
- cron: "0 0 1 * *"
jobs:
update:
if: github.event_name != 'schedule' || github.repository == 'sindresorhus/html-tags'
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: |
npm install
npm run build -- --ci
echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> "$GITHUB_ENV"
echo "ADDED_TAGS=$(cat .cache/added-tags)" >> "$GITHUB_ENV"
- uses: peter-evans/create-pull-request@v7
with:
commit-message: Add ${{env.ADDED_TAGS }}
title: Add ${{env.ADDED_TAGS }}
branch: automated-update-${{ env.CURRENT_DATE }}
branch-suffix: timestamp