Update codegen subtree #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "PR Subtree Push" | |
permissions: | |
contents: write | |
on: | |
pull_request: | |
branches: | |
- main | |
types: [closed] | |
jobs: | |
split-subtrees: | |
if: ${{ github.event.pull_request.merged }} | |
runs-on: macos-13 | |
name: Split and Push Subtrees | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
fetch-depth: 0 | |
- name: Setup SSH Keys | |
uses: webfactory/ssh-agent@v0.7.0 | |
with: | |
ssh-private-key: | | |
${{ secrets.APOLLO_IOS_DEPLOY_KEY }} | |
${{ secrets.APOLLO_IOS_CODEGEN_DEPLOY_KEY }} | |
${{ secrets.APOLLO_IOS_DEV_DEPLOY_KEY }} | |
- name: Update Merge Commit Message | |
shell: bash | |
run: | | |
git commit --amend -m "${{ github.event.pull_request.title }} (apollographql/apollo-ios-dev#${{ github.event.pull_request.number }})" | |
git push --force-with-lease | |
- name: Subtree - Apollo iOS | |
uses: ./.github/actions/subtree-split-push | |
with: | |
subtree: apollo-ios | |
remote: git@github.com:apollographql/apollo-ios.git | |
target-branch: project-breakup | |
pr-number: ${{ github.event.pull_request.number }} | |
pr-title: ${{ github.event.pull_request.title }} | |
- name: Subtree - Apollo iOS Codegen | |
uses: ./.github/actions/subtree-split-push | |
with: | |
subtree: apollo-ios-codegen | |
remote: git@github.com:apollographql/apollo-ios-codegen.git | |
target-branch: main | |
pr-number: ${{ github.event.pull_request.number }} | |
pr-title: ${{ github.event.pull_request.title }} | |
- name: Push Updated History | |
shell: bash | |
run: | | |
git push |