Skip to content

Commit

Permalink
Update ensure-podspec-version.yml (#169)
Browse files Browse the repository at this point in the history
* Update ensure-podspec-version.yml

* Update ensure-podspec-version.yml
  • Loading branch information
ehsan6sha authored Sep 13, 2023
1 parent 08a6227 commit 2a4dcca
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/ensure-podspec-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ name: Update Podspec Version
on:
release:
types: [published]
workflow_dispatch:

jobs:
update-version:
runs-on: ubuntu-latest

steps:
- name: Check out code
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.release.target_commitish }}

- name: Create new branch
run: |
git checkout -b update-version-${{ github.event.release.tag_name }}
- name: Update version
run: |
Expand All @@ -29,4 +32,13 @@ jobs:
run: |
git add .
git commit -m "Update version to $VERSION"
git push
git push origin update-version-${{ github.event.release.tag_name }}
- name: Create Pull Request
uses: gh-actions-contrib/create-pull-request@v3
with:
title: 'Update version to ${{ env.VERSION }}'
body: 'Automatically update version number.'
labels: 'version update, automated pr'
branch: 'update-version-${{ github.event.release.tag_name }}'
draft: false

0 comments on commit 2a4dcca

Please sign in to comment.