chore(main): release 0.1.1 #4
Workflow file for this run
This file contains hidden or 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 Dependabot | |
| on: pull_request_target | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| auto-merge: | |
| name: Auto-merge patch/minor updates | |
| runs-on: ubuntu-latest | |
| if: github.actor == 'dependabot[bot]' | |
| steps: | |
| - name: Get Dependabot metadata | |
| id: meta | |
| uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0 | |
| # Auto-merge only patch/minor bumps, AND only for ecosystems where | |
| # the contents are reviewable (Actions / Swift packages). Git | |
| # submodules (`gitsubmodule`) wholesale-rotate to a new SHA with | |
| # arbitrary code — never auto-merge those without a human look. | |
| - name: Approve and enable auto-merge for patch/minor | |
| if: | | |
| (steps.meta.outputs.update-type == 'version-update:semver-patch' | |
| || steps.meta.outputs.update-type == 'version-update:semver-minor') | |
| && steps.meta.outputs.package-ecosystem != 'gitsubmodule' | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh pr review --approve "$PR_URL" | |
| gh pr merge --auto --squash "$PR_URL" |