build(deps-dev): bump drizzle-kit from 0.26.2 to 0.27.1 #6670
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 auto-merge | |
on: pull_request_target | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | |
steps: | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/fetch-metadata@v1 | |
with: | |
github-token: '${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}' | |
- name: Checkout (not dev dep) | |
uses: actions/checkout@master | |
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' && steps.metadata.outputs.dependency-type != 'direct:development' }} | |
with: | |
fetch-depth: 2 | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }} | |
- name: Create changeset (not dev dep) | |
run: .github/workflows/dependabot_auto_merge_changeset.sh | |
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' && steps.metadata.outputs.dependency-type != 'direct:development' }} | |
env: | |
DEPENDENCIES: ${{ steps.metadata.outputs.dependency-names }} | |
GITHUB_TOKEN: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }} | |
- name: Add skip changelog label (dev dep) | |
uses: actions-ecosystem/action-add-labels@v1 | |
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' && steps.metadata.outputs.dependency-type == 'direct:development' }} | |
with: | |
labels: Skip Changelog | |
github_token: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }} | |
- name: Enable auto-merge for Dependabot PRs (dev dep) | |
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' && steps.metadata.outputs.dependency-type == 'direct:development' }} | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GITHUB_TOKEN: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }} |