Files
brew/.github/workflows/spdx.yml
T
dependabot[bot]andGitHub 05001457d4 build(deps): bump the github-actions group across 1 directory with 7 updates
Bumps the github-actions group with 7 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [Homebrew/actions/setup-homebrew](https://github.com/homebrew/actions) | `2026.07.29.1` | `2026.08.03.2` |
| [Homebrew/actions/cache-homebrew-prefix](https://github.com/homebrew/actions) | `2026.07.29.1` | `2026.08.03.2` |
| [Homebrew/actions/setup-ruby](https://github.com/homebrew/actions) | `2026.07.29.1` | `2026.08.03.2` |
| [Homebrew/actions/create-or-update-issue](https://github.com/homebrew/actions) | `2026.07.29.1` | `2026.08.03.2` |
| [Homebrew/actions/git-user-config](https://github.com/homebrew/actions) | `2026.07.29.1` | `2026.08.03.2` |
| [Homebrew/actions/setup-commit-signing](https://github.com/homebrew/actions) | `2026.07.29.1` | `2026.08.03.2` |
| [Homebrew/actions/git-try-push](https://github.com/homebrew/actions) | `2026.07.29.1` | `2026.08.03.2` |



Updates `Homebrew/actions/setup-homebrew` from 2026.07.29.1 to 2026.08.03.2
- [Release notes](https://github.com/homebrew/actions/releases)
- [Changelog](https://github.com/Homebrew/actions/blob/main/release.test.mts)
- [Commits](https://github.com/homebrew/actions/compare/2026.07.29.1...fd832223f9f99ebf0244dd20658680e5d4aca049)

Updates `Homebrew/actions/cache-homebrew-prefix` from 2026.07.29.1 to 2026.08.03.2
- [Release notes](https://github.com/homebrew/actions/releases)
- [Changelog](https://github.com/Homebrew/actions/blob/main/release.test.mts)
- [Commits](https://github.com/homebrew/actions/compare/2026.07.29.1...fd832223f9f99ebf0244dd20658680e5d4aca049)

Updates `Homebrew/actions/setup-ruby` from 2026.07.29.1 to 2026.08.03.2
- [Release notes](https://github.com/homebrew/actions/releases)
- [Changelog](https://github.com/Homebrew/actions/blob/main/release.test.mts)
- [Commits](https://github.com/homebrew/actions/compare/9af03b7ae3f9e2ae5c174f659d5c3909f7e7dbac...fd832223f9f99ebf0244dd20658680e5d4aca049)

Updates `Homebrew/actions/create-or-update-issue` from 2026.07.29.1 to 2026.08.03.2
- [Release notes](https://github.com/homebrew/actions/releases)
- [Changelog](https://github.com/Homebrew/actions/blob/main/release.test.mts)
- [Commits](https://github.com/homebrew/actions/compare/9af03b7ae3f9e2ae5c174f659d5c3909f7e7dbac...fd832223f9f99ebf0244dd20658680e5d4aca049)

Updates `Homebrew/actions/git-user-config` from 2026.07.29.1 to 2026.08.03.2
- [Release notes](https://github.com/homebrew/actions/releases)
- [Changelog](https://github.com/Homebrew/actions/blob/main/release.test.mts)
- [Commits](https://github.com/homebrew/actions/compare/9af03b7ae3f9e2ae5c174f659d5c3909f7e7dbac...fd832223f9f99ebf0244dd20658680e5d4aca049)

Updates `Homebrew/actions/setup-commit-signing` from 2026.07.29.1 to 2026.08.03.2
- [Release notes](https://github.com/homebrew/actions/releases)
- [Changelog](https://github.com/Homebrew/actions/blob/main/release.test.mts)
- [Commits](https://github.com/homebrew/actions/compare/9af03b7ae3f9e2ae5c174f659d5c3909f7e7dbac...fd832223f9f99ebf0244dd20658680e5d4aca049)

Updates `Homebrew/actions/git-try-push` from 2026.07.29.1 to 2026.08.03.2
- [Release notes](https://github.com/homebrew/actions/releases)
- [Changelog](https://github.com/Homebrew/actions/blob/main/release.test.mts)
- [Commits](https://github.com/homebrew/actions/compare/9af03b7ae3f9e2ae5c174f659d5c3909f7e7dbac...fd832223f9f99ebf0244dd20658680e5d4aca049)

---
updated-dependencies:
- dependency-name: Homebrew/actions/setup-homebrew
  dependency-version: 2026.08.03.2
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: Homebrew/actions/cache-homebrew-prefix
  dependency-version: 2026.08.03.2
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: Homebrew/actions/setup-ruby
  dependency-version: 2026.08.03.2
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: Homebrew/actions/create-or-update-issue
  dependency-version: 2026.08.03.2
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: Homebrew/actions/git-user-config
  dependency-version: 2026.08.03.2
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: Homebrew/actions/setup-commit-signing
  dependency-version: 2026.08.03.2
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: Homebrew/actions/git-try-push
  dependency-version: 2026.08.03.2
  dependency-type: direct:production
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-05 04:36:31 +00:00

114 lines
4.0 KiB
YAML

name: Update SPDX license data
on:
push:
paths:
- .github/workflows/spdx.yml
branches-ignore:
- main
- master
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: read
defaults:
run:
shell: bash -xeuo pipefail {0}
jobs:
spdx:
if: github.repository == 'Homebrew/brew'
runs-on: ubuntu-latest
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@fd832223f9f99ebf0244dd20658680e5d4aca049 # 2026.08.03.2
with:
core: false
cask: false
- name: Configure Git user
uses: Homebrew/actions/git-user-config@fd832223f9f99ebf0244dd20658680e5d4aca049 # 2026.08.03.2
with:
username: BrewTestBot
- name: Set up commit signing
if: github.actor != 'dependabot[bot]'
uses: Homebrew/actions/setup-commit-signing@fd832223f9f99ebf0244dd20658680e5d4aca049 # 2026.08.03.2
with:
signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }}
- name: Update SPDX license data
id: update
env:
GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
run: |
git fetch origin
BRANCH="spdx-update"
echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"
if git ls-remote --exit-code --heads origin "${BRANCH}"
then
git checkout "${BRANCH}"
git checkout "Library/Homebrew/data/spdx"
else
git checkout --no-track -B "${BRANCH}" origin/HEAD
fi
if brew update-license-data
then
git add "Library/Homebrew/data/spdx"
git commit -m "spdx: update license data." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/spdx.yml)."
echo "committed=true" >> "$GITHUB_OUTPUT"
PULL_REQUEST_STATE="$(gh pr view --json=state | jq -r ".state" || true)"
if [[ "${PULL_REQUEST_STATE}" != "OPEN" ]]
then
echo "pull_request=true" >> "$GITHUB_OUTPUT"
fi
fi
- name: Push commits
if: steps.update.outputs.committed == 'true' && github.actor != 'dependabot[bot]'
uses: Homebrew/actions/git-try-push@fd832223f9f99ebf0244dd20658680e5d4aca049 # 2026.08.03.2
with:
token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
branch: ${{ steps.update.outputs.branch }}
force: true
origin_branch: "HEAD"
- name: Open a pull request
if: steps.update.outputs.pull_request == 'true' && github.actor != 'dependabot[bot]'
run: gh pr create --fill
env:
GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
issue:
needs: spdx
if: always() && github.event_name == 'schedule' && github.repository == 'Homebrew/brew'
runs-on: ubuntu-slim
env:
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
permissions:
# To create or update issues
issues: write
steps:
- name: Open, update, or close SPDX issue
uses: Homebrew/actions/create-or-update-issue@fd832223f9f99ebf0244dd20658680e5d4aca049 # 2026.08.03.2
with:
title: Failed to update SPDX license data
body: >
The SPDX license data workflow [failed](${{ env.RUN_URL }}). No SPDX license data was updated.
labels: bug
update-existing: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
close-existing: ${{ needs.spdx.result == 'success' }}
close-from-author: github-actions[bot]
close-comment: >
The SPDX license data workflow [succeeded](${{ env.RUN_URL }}). Closing this issue.