Skip to content

🤖 Merge PR #74249 [nodemailer] Remove AWS SDK from dependencies, use … #882

🤖 Merge PR #74249 [nodemailer] Remove AWS SDK from dependencies, use …

🤖 Merge PR #74249 [nodemailer] Remove AWS SDK from dependencies, use … #882

name: Format And Commit
concurrency:
group: ${{ github.ref }}
on:
push:
branches:
- master
workflow_dispatch: ~
jobs:
dprint-fmt:
runs-on: ubuntu-latest
if: github.repository == 'DefinitelyTyped/DefinitelyTyped'
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# Use a deploy key so that CI triggers on pushes; we want to know if formatting broke something.
ssh-key: ${{ secrets.DEPLOY_KEY }}
- uses: ./.github/actions/setup-for-scripts
- name: Get date
id: date
run: echo "date=$(/bin/date -u "+%Y-%m-%d")" >> $GITHUB_OUTPUT
- uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
with:
# dprint caches info about the files in the repo to skip formatting them.
# However, since package.json and .dprint.jsonc don't change very often,
# using them solely for the cache key would mean that the cache would be
# eventually outdated enough to make the cache useless. To avoid this,
# we also include the date in the cache key to ensure the cache is invalidated
# more often.
key: ${{ runner.os }}-dprint-${{ hashFiles('package.json', '.dprint.jsonc') }}-${{ steps.date.outputs.date }}
path: ~/.cache/dprint
restore-keys: |
${{ runner.os }}-dprint-${{ hashFiles('package.json', '.dprint.jsonc') }}
${{ runner.os }}-dprint-
- run: pnpm dprint fmt
- uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
with:
commit_author: 'TypeScript Bot <typescriptbot@microsoft.com>'
commit_message: '🤖 dprint fmt'
commit_user_email: 'typescriptbot@microsoft.com'
commit_user_name: 'TypeScript Bot'