-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab6e77d
commit 74aa6a9
Showing
1 changed file
with
4 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,6 @@ on: | |
remoteRef: | ||
description: 'Branch or Tag to Pull' | ||
required: true | ||
repository_dispatch: | ||
types: [release-new-version] | ||
|
||
env: | ||
REMOTE_REF: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.remoteRef || github.event.client_payload.versionNumber }} | ||
|
||
jobs: | ||
create-release: | ||
|
@@ -31,14 +26,14 @@ jobs: | |
- name: Update Subtree | ||
shell: bash | ||
run: | | ||
git subtree pull -P apollo-ios [email protected]:apollographql/apollo-ios.git ${{ env.REMOTE_REF }} -m "Pulling '${{ env.REMOTE_REF }}' from apollo-ios for release." | ||
git subtree pull -P apollo-ios [email protected]:apollographql/apollo-ios.git ${{ github.event.inputs.remoteRef }} -m "Pulling '${{ github.event.inputs.remoteRef }}' from apollo-ios for release." | ||
- name: Run Tuist Generation | ||
uses: ./.github/actions/run-tuist-generation | ||
- name: Commit and Push Changes | ||
shell: bash | ||
run: | | ||
git add -A | ||
git commit --allow-empty -m "Releasing new version based on '${{ env.REMOTE_REF }}' of apollo-ios repo." | ||
git commit --allow-empty -m "Releasing new version based on '${{ github.event.inputs.remoteRef }}' of apollo-ios repo." | ||
git push | ||
git tag ${{ env.REMOTE_REF }} | ||
git push --tags | ||
git tag ${{ github.event.inputs.remoteRef }} | ||
git push --tags |