mirror of
https://github.com/supabase/setup-cli.git
synced 2026-08-12 08:45:15 +00:00
Bumps the actions-minor-patch group with 1 update: [ruby/setup-ruby](https://github.com/ruby/setup-ruby). Updates `ruby/setup-ruby` from 1.317.0 to 1.319.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/ruby/setup-ruby/releases">ruby/setup-ruby's releases</a>.</em></p> <blockquote> <h2>v1.319.0</h2> <h2>What's Changed</h2> <ul> <li>Add ruby-3.3.12 by <a href="https://github.com/ruby-builder-bot"><code>@ruby-builder-bot</code></a> in <a href="https://redirect.github.com/ruby/setup-ruby/pull/930">ruby/setup-ruby#930</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ruby/setup-ruby/compare/v1.318.0...v1.319.0">https://github.com/ruby/setup-ruby/compare/v1.318.0...v1.319.0</a></p> <h2>v1.318.0</h2> <h2>What's Changed</h2> <ul> <li>Update CRuby releases on Windows by <a href="https://github.com/ruby-builder-bot"><code>@ruby-builder-bot</code></a> in <a href="https://redirect.github.com/ruby/setup-ruby/pull/929">ruby/setup-ruby#929</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ruby/setup-ruby/compare/v1.317.0...v1.318.0">https://github.com/ruby/setup-ruby/compare/v1.317.0...v1.318.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="003a5c4d8d"><code>003a5c4</code></a> Add ruby-3.3.12</li> <li><a href="8e41b362d2"><code>8e41b36</code></a> Update CRuby releases on Windows</li> <li>See full diff in <a href="6e5d382445...003a5c4d8d">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
148 lines
4.5 KiB
YAML
148 lines
4.5 KiB
YAML
# This workflow refreshes and checks dependency license records used in this
|
|
# action with the help of the Licensed tool. If any licenses are invalid or
|
|
# missing, this workflow will fail. See: https://github.com/licensee/licensed
|
|
|
|
name: Licensed
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- .github/workflows/licensed.yml
|
|
- .licensed.yml
|
|
- .licenses/**
|
|
- bun.lock
|
|
- package.json
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check-licenses:
|
|
if: ${{ github.event_name != 'workflow_dispatch' }}
|
|
name: Licensed
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
|
|
steps:
|
|
- name: Detect license inputs
|
|
id: license-inputs
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
REPOSITORY: ${{ github.repository }}
|
|
run: |
|
|
if [[ "${{ github.event_name }}" != "pull_request" ]]; then
|
|
echo "changed=true" >> "$GITHUB_OUTPUT"
|
|
exit 0
|
|
fi
|
|
|
|
gh api "repos/${REPOSITORY}/pulls/${PR_NUMBER}/files" --paginate --jq '.[].filename' > changed-files.txt
|
|
if grep -Eq '^(\.github/workflows/licensed\.yml|\.licensed\.yml|\.licenses/.*|bun\.lock|package\.json)$' changed-files.txt; then
|
|
echo "changed=true" >> "$GITHUB_OUTPUT"
|
|
else
|
|
echo "changed=false" >> "$GITHUB_OUTPUT"
|
|
fi
|
|
|
|
- name: Checkout
|
|
id: checkout
|
|
if: steps.license-inputs.outputs.changed == 'true'
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Setup Bun
|
|
id: setup-bun
|
|
if: steps.license-inputs.outputs.changed == 'true'
|
|
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
|
with:
|
|
bun-version-file: .bun-version
|
|
|
|
- name: Install Dependencies
|
|
id: bun-install
|
|
if: steps.license-inputs.outputs.changed == 'true'
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Setup Ruby
|
|
id: setup-ruby
|
|
if: steps.license-inputs.outputs.changed == 'true'
|
|
uses: ruby/setup-ruby@003a5c4d8d6321bd302e38f6f0ec593f77f06600 # v1.319.0
|
|
with:
|
|
ruby-version: ruby
|
|
|
|
- uses: licensee/setup-licensed@0d52e575b3258417672be0dff2f115d7db8771d8 # v1.3.2
|
|
if: steps.license-inputs.outputs.changed == 'true'
|
|
with:
|
|
version: 4.x
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Refresh License Cache
|
|
id: refresh-license-cache
|
|
if: steps.license-inputs.outputs.changed == 'true'
|
|
run: licensed cache
|
|
|
|
- name: Check Licenses
|
|
id: check-licenses
|
|
if: steps.license-inputs.outputs.changed == 'true'
|
|
run: licensed status
|
|
|
|
update-licenses:
|
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
name: Update Licenses
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
id: checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Setup Bun
|
|
id: setup-bun
|
|
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
|
with:
|
|
bun-version-file: .bun-version
|
|
|
|
- name: Install Dependencies
|
|
id: bun-install
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Setup Ruby
|
|
id: setup-ruby
|
|
uses: ruby/setup-ruby@003a5c4d8d6321bd302e38f6f0ec593f77f06600 # v1.319.0
|
|
with:
|
|
ruby-version: ruby
|
|
|
|
- uses: licensee/setup-licensed@0d52e575b3258417672be0dff2f115d7db8771d8 # v1.3.2
|
|
with:
|
|
version: 4.x
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Update License Cache
|
|
id: update-licenses
|
|
run: licensed cache
|
|
|
|
- name: Format License Files
|
|
id: format-licenses
|
|
run: bun x oxfmt --write .licensed.yml .licenses
|
|
|
|
- name: Commit Licenses
|
|
id: commit-licenses
|
|
run: |
|
|
git config --local user.email "licensed-ci@users.noreply.github.com"
|
|
git config --local user.name "licensed-ci"
|
|
git add .licenses .licensed.yml
|
|
if git diff --cached --quiet; then
|
|
echo "No license cache changes to commit."
|
|
exit 0
|
|
fi
|
|
git commit -m "Auto-update license files"
|
|
git push
|