Semantic attribute fix #3
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: Tag & Note Release | |
| on : | |
| pull_request: | |
| branches: | |
| - main | |
| types: | |
| - closed | |
| permissions: | |
| contents: read | |
| jobs: | |
| CheckRelease: | |
| permissions: | |
| contents: write # required for creating tags and releases | |
| runs-on: macos-15 | |
| steps: | |
| - name: Check if merge is release branch | |
| id: check-release | |
| run: | | |
| if [[ ${{ github.head_ref }} =~ ^release/([0-9]+\.[0-9]+\.[0-9]+$) ]]; then | |
| echo "match=true" >> $GITHUB_OUTPUT | |
| echo "version=${BASH_REMATCH[1]}" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Tag if release branch | |
| if: github.event.pull_request.merged != true || steps.check-release.outputs.match != 'true' | |
| run: exit 1 | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| ref: ${{ github.event.pull_request.merge_commit_sha }} | |
| fetch-depth: '0' | |
| - uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1 | |
| with: | |
| commit_message: version bump to ${{ steps.check-release.outputs.version }} | |
| tagging_message: '${{ steps.check-release.outputs.version }}' | |
| - uses: ncipollo/release-action@bcfe5470707e8832e12347755757cec0eb3c22af # v1.18.0 | |
| with: | |
| tag: ${{ steps.check-release.outputs.version }} | |
| prerelease: true | |
| generateReleaseNotes: true | |
| - name: push cocoapods | |
| env: | |
| COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
| id: cocoapod_trunk_push | |
| run: | | |
| pod trunk push OpenTelemetry-Swift-Api.podspec --allow-warnings | |
| pod trunk push OpenTelemetry-Swift-Sdk.podspec --allow-warnings --synchronous | |