v1.56.2 #56
Workflow file for this run
This file contains hidden or 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: Update Podspec Version | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| update-version: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Update version | |
| run: | | |
| VERSION=$(echo "${{ github.event.release.tag_name }}" | cut -c 2-) # remove the v from the tag name | |
| sed -i 's/\(s.version\s*=\s*\).*$/\1'"\"$VERSION\""'/g' Fula.podspec | |
| sed -i 's/#{s.version}/'"$VERSION"'/g' Fula.podspec | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| title: 'Update version to ${{ github.event.release.tag_name }}' | |
| body: 'Automatically update version number.' | |
| labels: 'version update, automated pr' | |
| branch: 'update-version-${{ github.event.release.tag_name }}' | |
| commit-message: 'Update version to ${{ github.event.release.tag_name }}' | |
| draft: false |