Update #3208
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
name: Update | |
on: | |
# Run hourly | |
schedule: | |
- cron: '0 * * * *' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write # Let the default token commit and push. | |
jobs: | |
sync: | |
name: 🔄 Sync version with upstream | |
environment: "Candidate Branch" | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🔄 Sync version with upstream | |
uses: snapcrafters/ci/sync-version@main | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
update-script: | | |
VERSION=$( | |
curl -sL https://api.github.com/repos/astral-sh/uv/releases/latest | jq -r .tag_name | tr -d "v" | |
) | |
sed -i 's/^\(version: \).*$/\1'"$VERSION"'/' snap/snapcraft.yaml |