From c83e2929e487a03004de5b3c5fac666f0a92775b Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Mon, 11 Sep 2023 15:00:30 -0400 Subject: [PATCH] Update ensure-podspec-version.yml --- .github/workflows/ensure-podspec-version.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ensure-podspec-version.yml b/.github/workflows/ensure-podspec-version.yml index 2e5d8743..68a700bb 100644 --- a/.github/workflows/ensure-podspec-version.yml +++ b/.github/workflows/ensure-podspec-version.yml @@ -3,6 +3,7 @@ name: Update Podspec Version on: release: types: [published] + workflow_dispatch: jobs: update-version: @@ -22,6 +23,11 @@ jobs: sed -i 's/\(s.version\s*=\s*\).*$/\1'"\"$VERSION\""'/g' Fula.podspec sed -i 's/#{s.version}/'"$VERSION"'/g' Fula.podspec + - name: Set up Git + run: | + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + - name: Commit and push run: | git add . @@ -36,14 +42,3 @@ jobs: labels: 'version update, automated pr' branch: 'update-version-${{ github.event.release.tag_name }}' draft: false - - - name: Set up Git - run: | - git config user.name "GitHub Actions" - git config user.email "actions@github.com" - - - name: Commit and push - run: | - git add . - git commit -m "Update version to $VERSION" - git push