build(deps): bump esbuild from 0.15.18 to 0.24.2 in the markdown group #1265
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: Auto Merge PRs from dependabot | |
on: | |
pull_request_target: | |
types: [opened, synchronize] | |
jobs: | |
autoapprove-for-bot: | |
name: Autoaprove PRs fom dependabot | |
runs-on: ubuntu-latest | |
if: > | |
github.event.pull_request.user.login == 'dependabot[bot]' || | |
github.event.pull_request.user.login == 'dependabot-preview[bot]' && | |
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]') | |
steps: | |
- name: Decode the GitHub App Private Key | |
id: decode | |
run: | | |
private_key=$(echo "${{ secrets.GH_APP_PRIVATE_KEY }}" | base64 -d | awk 'BEGIN {ORS="\\n"} {print}' | head -c -2) &> /dev/null | |
echo "::add-mask::$private_key" | |
echo "private-key=$private_key" >> "$GITHUB_OUTPUT" | |
- uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
# required | |
app-id: ${{ secrets.GH_APP_ID }} | |
private-key: ${{ steps.decode.outputs.private-key }} | |
- name: Harden Runner | |
uses: step-security/[email protected] | |
with: | |
egress-policy: audit | |
- name: Autoaprove | |
uses: hmarr/auto-approve-action@v4 | |
with: | |
review-message: 'Auto approved automated PR' | |
github-token: ${{ steps.app-token.outputs.token }} | |
- name: Label automerge | |
uses: actions/[email protected] | |
with: | |
github-token: ${{ steps.app-token.outputs.token }} | |
script: | | |
github.rest.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: ['automerge'] | |
}) |