Merge pull request #6 from christiandeange/renovate/sh.christian.ozon… #12
This file contains 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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- gradle/libs.versions.toml | |
jobs: | |
update-version: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: "Checkout repo" | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: "Set version as envionment variable" | |
run: echo "LATEST_VERSION=$(awk -F\" '/sh.christian.ozone:bluesky/ { print $4 }' < gradle/libs.versions.toml)" >> $GITHUB_ENV | |
- name: "Update Package.swift" | |
run: ./update_version.sh ${{ env.LATEST_VERSION }} | |
- name: "Commit changes back to repo" | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Releasing v${{ env.LATEST_VERSION }}." | |
tagging_message: "${{ env.LATEST_VERSION }}" | |
file_pattern: "Package.swift" |