Skip to content

[Feature] Remove rest using a future flag #7015

[Feature] Remove rest using a future flag

[Feature] Remove rest using a future flag #7015

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 }}