Skip to content

Commit

Permalink
ci: ensure dev branch is updated daily
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed Feb 22, 2024
1 parent 1f6571f commit d3db685
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/sync-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
cancel-in-progress: true

jobs:
sync:
sync-candidate:
name: Sync version with upstream
environment: "Candidate Branch"
runs-on: ubuntu-latest
Expand All @@ -24,3 +24,17 @@ jobs:
update-script: |
stable_version=$(wget -qO- https://download.sublimetext.com/latest/stable)
sed -i 's/^\(version: \).*$/\1'"\"$stable_version\""'/' snap/snapcraft.yaml
sync-dev:
name: Sync dev version with upstream
environment: "Dev Branch"
runs-on: ubuntu-latest
steps:
- name: Sync version with upstream
uses: snapcrafters/ci/sync-version@main
with:
branch: dev
token: ${{ secrets.SNAPCRAFTERS_BOT_COMMIT }}
update-script: |
dev_version=$(wget -qO- https://download.sublimetext.com/latest/dev)
sed -i 's/^\(version: \).*$/\1'"\"$dev_version\""'/' snap/snapcraft.yaml

0 comments on commit d3db685

Please sign in to comment.