Skip to content

build(deps): bump github.com/supabase/cli from 1.128.1 to 1.129.0 #104

build(deps): bump github.com/supabase/cli from 1.128.1 to 1.129.0

build(deps): bump github.com/supabase/cli from 1.128.1 to 1.129.0 #104

# dep_trig_release.yml file will merge it when
# the dependabot updates envd and creates a PR,
# then push a tag to trigger a release
# see also [dependabot.yml]
name: dependabot trigger release
on:
pull_request:
permissions:
pull-requests: write
contents: write
jobs:
dependabot-auto-merge:
name: Merge a dependabot PR
runs-on: ubuntu-latest
# Checking the actor will prevent your Action run failing on non-Dependabot
# PRs but also ensures that it only does work for Dependabot PRs.
if: github.actor == 'dependabot[bot]'
steps:
# The step will fail if there's no metadata and so the approval will not occur.
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Wait for status checks
uses: WyriHaximus/[email protected]
with:
ignoreActions: "Merge a dependabot PR"
checkInterval: 10
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
dependabot-push-tag:
name: Push a tag for dependabot PR
runs-on: ubuntu-latest
# Push a tag happens when a PR of dependabot is merged
needs: dependabot-auto-merge
steps:
- uses: actions/checkout@v3
with:
ref: 'main'
fetch-depth: 0
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Bump version and push tag
id: tag_version
run: |
git tag v$TAG_NAME
git push origin v$TAG_NAME
env:
TAG_NAME: ${{ steps.dependabot-metadata.outputs.new-version }}
dependabot-release:
needs: dependabot-push-tag
uses: ./.github/workflows/release.yml
secrets: inherit