docs: fix createdAt.maxNegativeDelta key name in CONFIGURATION.md #61
Workflow file for this run
This file contains hidden or 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: Dependabot Changeset | |
| on: | |
| pull_request: | |
| types: [opened, reopened] | |
| workflow_dispatch: | |
| jobs: | |
| add-changeset: | |
| name: Add Changeset | |
| runs-on: ubuntu-latest | |
| if: github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' | |
| permissions: | |
| contents: write | |
| pull-requests: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.head_ref || github.ref_name }} | |
| fetch-depth: 0 | |
| - name: Get PR info | |
| id: pr | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| echo "number=$(gh pr view --json number --jq '.number')" >> "$GITHUB_OUTPUT" | |
| echo "title=$(gh pr view --json title --jq '.title')" >> "$GITHUB_OUTPUT" | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.33.0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --no-frozen-lockfile | |
| - name: Check for existing changeset | |
| id: check | |
| run: | | |
| filename=".changeset/dependabot-pr-${{ steps.pr.outputs.number }}.md" | |
| if [ -f "$filename" ]; then | |
| echo "exists=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "exists=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Create changeset | |
| if: steps.check.outputs.exists == 'false' | |
| env: | |
| PR_TITLE: ${{ steps.pr.outputs.title }} | |
| run: | | |
| filename=".changeset/dependabot-pr-${{ steps.pr.outputs.number }}.md" | |
| printf -- '---\n"nostream": patch\n---\n\n%s\n' "$PR_TITLE" > "$filename" | |
| - name: Commit and push | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| ADDED_CHANGESET=false | |
| ADDED_LOCKFILE=false | |
| if [ "${{ steps.check.outputs.exists }}" == 'false' ]; then | |
| git add ".changeset/dependabot-pr-${{ steps.pr.outputs.number }}.md" | |
| ADDED_CHANGESET=true | |
| fi | |
| if [ -n "$(git status --porcelain pnpm-lock.yaml)" ]; then | |
| git add pnpm-lock.yaml | |
| ADDED_LOCKFILE=true | |
| fi | |
| if [ "$ADDED_CHANGESET" = true ] || [ "$ADDED_LOCKFILE" = true ]; then | |
| if [ "$ADDED_CHANGESET" = true ] && [ "$ADDED_LOCKFILE" = true ]; then | |
| MSG="chore: add changeset and update lockfile for dependabot PR #${{ steps.pr.outputs.number }}" | |
| elif [ "$ADDED_CHANGESET" = true ]; then | |
| MSG="chore: add changeset for dependabot PR #${{ steps.pr.outputs.number }}" | |
| else | |
| MSG="chore: update lockfile for dependabot PR #${{ steps.pr.outputs.number }}" | |
| fi | |
| git commit -m "$MSG" | |
| git push | |
| fi |