Skip to content

Commit

Permalink
Reverting dispatch changes (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobaFetters authored Jun 25, 2024
1 parent ab6e77d commit 74aa6a9
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 74aa6a9

Please sign in to comment.