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 in the / directory: [ruby/setup-ruby](https://github.com/ruby/setup-ruby). Updates `ruby/setup-ruby` from 1.308.0 to 1.316.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.316.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/926">ruby/setup-ruby#926</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ruby/setup-ruby/compare/v1.315.0...v1.316.0">https://github.com/ruby/setup-ruby/compare/v1.315.0...v1.316.0</a></p> <h2>v1.315.0</h2> <h2>What's Changed</h2> <ul> <li>Bump actions/checkout from 6 to 7 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/ruby/setup-ruby/pull/924">ruby/setup-ruby#924</a></li> <li>Add ruby-3.4.10 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/925">ruby/setup-ruby#925</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ruby/setup-ruby/compare/v1.314.0...v1.315.0">https://github.com/ruby/setup-ruby/compare/v1.314.0...v1.315.0</a></p> <h2>v1.314.0</h2> <h2>What's Changed</h2> <ul> <li>Add support for ubuntu-26.04 and ubuntu-26.04-arm by <a href="https://github.com/eregon"><code>@eregon</code></a> in <a href="https://redirect.github.com/ruby/setup-ruby/pull/923">ruby/setup-ruby#923</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ruby/setup-ruby/compare/v1.313.0...v1.314.0">https://github.com/ruby/setup-ruby/compare/v1.313.0...v1.314.0</a></p> <h2>v1.313.0</h2> <h2>What's Changed</h2> <ul> <li>Add jruby-10.0.6.0 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/921">ruby/setup-ruby#921</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ruby/setup-ruby/compare/v1.312.0...v1.313.0">https://github.com/ruby/setup-ruby/compare/v1.312.0...v1.313.0</a></p> <h2>v1.312.0</h2> <h2>What's Changed</h2> <ul> <li>Use BUNDLE_LOCKFILE when detecting the lockfile by <a href="https://github.com/Thomascountz"><code>@Thomascountz</code></a> in <a href="https://redirect.github.com/ruby/setup-ruby/pull/919">ruby/setup-ruby#919</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/Thomascountz"><code>@Thomascountz</code></a> made their first contribution in <a href="https://redirect.github.com/ruby/setup-ruby/pull/919">ruby/setup-ruby#919</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ruby/setup-ruby/compare/v1.311.0...v1.312.0">https://github.com/ruby/setup-ruby/compare/v1.311.0...v1.312.0</a></p> <h2>v1.311.0</h2> <h2>What's Changed</h2> <ul> <li>Add jruby-9.4.15.0 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/920">ruby/setup-ruby#920</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ruby/setup-ruby/compare/v1.310.0...v1.311.0">https://github.com/ruby/setup-ruby/compare/v1.310.0...v1.311.0</a></p> <h2>v1.310.0</h2> <h2>What's Changed</h2> <ul> <li>Add ruby-4.0.5 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/918">ruby/setup-ruby#918</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="d45b1a4e94"><code>d45b1a4</code></a> Update CRuby releases on Windows</li> <li><a href="0dafeac902"><code>0dafeac</code></a> Add ruby-3.4.10</li> <li><a href="bf35c27edc"><code>bf35c27</code></a> Bump actions/checkout from 6 to 7</li> <li><a href="9eb537ca03"><code>9eb537c</code></a> Add support for ubuntu-26.04 and ubuntu-26.04-arm</li> <li><a href="e1a3b100ca"><code>e1a3b10</code></a> Improve versions-strings-for-builder.rb</li> <li><a href="0df5288f06"><code>0df5288</code></a> Remove <code>gem install sassc</code> on Windows JRuby</li> <li><a href="89f90524b8"><code>89f9052</code></a> Add jruby-10.0.6.0</li> <li><a href="12fd324f1d"><code>12fd324</code></a> Use BUNDLE_LOCKFILE when detecting the lockfile</li> <li><a href="a99ac84464"><code>a99ac84</code></a> Add jruby-9.4.15.0</li> <li><a href="afeafc3d1a"><code>afeafc3</code></a> Add ruby-4.0.5</li> <li>Additional commits viewable in <a href="97ecb7b512...d45b1a4e94">compare view</a></li> </ul> </details> <br /> 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@d45b1a4e94b71acab930e56e79c6aa188764e7f9 # v1.316.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@d45b1a4e94b71acab930e56e79c6aa188764e7f9 # v1.316.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
|