Skip to content

Update product repo #49

Update product repo

Update product repo #49

Workflow file for this run

name: Update product repo
on:
workflow_dispatch:
inputs:
product:
description: 'Product repo to update'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
# - name: Disable LFS
# run: sudo git lfs uninstall --system
- name: Get SSH key
id: key
run: |
printf "name=%s_SSH_KEY\n" "$(
echo "${{ github.event.inputs.product }}" |
tr '[:lower:]-' '[:upper:]_'
)" >> "$GITHUB_OUTPUT"
- name: Checkout repo
uses: actions/checkout@v4
- name: Checkout ${{ github.event.inputs.product }} repo
uses: actions/checkout@v4
with:
repository: apple-open-source/${{ github.event.inputs.product }}
path: ${{ github.event.inputs.product }}
ssh-key: ${{ secrets[steps.key.outputs.name] }}
- name: Update ${{ github.event.inputs.product }} repo
run: |
cd "${{ github.event.inputs.product }}"
ref=$(git ls-remote --tags --sort="v:refname" | tail -n1 | cut -f2)
git fetch origin "$ref:$ref"
cd ..
PUSH_RELEASE=1 make "${{ github.event.inputs.product }}"