chore(deps): bump webpack from 5.74.0 to 5.94.0 #40
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: Dependabot PR Check | |
on: pull_request | |
jobs: | |
setup-variables: | |
name: Set up PR variables | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | |
outputs: | |
prVars: ${{ steps.setup-vars.outputs.vars }} | |
steps: | |
- id: setup-vars | |
run: echo "vars={\"prBranch\":\"$(echo $PR_BRANCH)\"}" >> $GITHUB_OUTPUT | |
env: | |
PR_BRANCH: ${{ github.head_ref }} | |
check-if-dependabot-pr: | |
name: Verify Dependabot PR | |
needs: setup-variables | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch Dependabot PR metadata | |
id: dependabot-metadata | |
uses: dependabot/[email protected] | |
- name: Log action for non-major updates | |
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} | |
run: echo "Triggering workflow to auto-merge Dependabot PR with inputs $(echo $INPUTS)" | |
- name: Auto-merge for non-major updates | |
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} | |
uses: benc-uk/[email protected] | |
with: | |
workflow: dependabot-auto-merge.yml | |
inputs: ${{ needs.setup-variables.outputs.prVars }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
ref: ${{ github.event.pull_request.head.ref }} |