mirror of
https://github.com/Homebrew/brew.git
synced 2026-08-12 22:29:27 +04:00
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>
65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
name: Sync default branches
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/sync-default-branches.yml
|
|
|
|
permissions: {}
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash -xeuo pipefail {0}
|
|
|
|
concurrency:
|
|
group: "sync-default-branches-${{ github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-slim
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Configure Git user
|
|
uses: Homebrew/actions/git-user-config@fd832223f9f99ebf0244dd20658680e5d4aca049 # 2026.08.03.2
|
|
with:
|
|
username: github-actions[bot]
|
|
|
|
- name: Determine source and target branches
|
|
id: branches
|
|
run: |
|
|
if [[ "${GITHUB_REF_NAME}" == "main" ]]; then
|
|
target="master"
|
|
source="main"
|
|
else
|
|
target="main"
|
|
source="master"
|
|
fi
|
|
echo "target=${target}" >> "$GITHUB_OUTPUT"
|
|
echo "source=${source}" >> "$GITHUB_OUTPUT"
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
fetch-depth: 1
|
|
persist-credentials: true
|
|
|
|
- name: Get target SHA
|
|
id: sha
|
|
run: |
|
|
TARGET_SHA=$(git ls-remote origin "refs/heads/${SOURCE_BRANCH}" | cut -f1)
|
|
echo "target=${TARGET_SHA}" >> "$GITHUB_OUTPUT"
|
|
env:
|
|
SOURCE_BRANCH: ${{ steps.branches.outputs.source }}
|
|
|
|
- name: Push target branch
|
|
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
|
|
run: git push origin "${TARGET_SHA}:refs/heads/${TARGET_BRANCH}" --force
|
|
env:
|
|
TARGET_SHA: ${{ steps.sha.outputs.target }}
|
|
TARGET_BRANCH: ${{ steps.branches.outputs.target }}
|