Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaroud yes not allowed for edge promotions (infra) #877

Merged
merged 2 commits into from
Dec 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 23 additions & 13 deletions .github/workflows/checkbox-beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,16 @@ jobs:
run: |
sudo snap install snapcraft --classic
- name: Promote checkbox core snaps to the beta channel
env:
SNAPCRAFT_HAS_TTY: "true" # this is necessary because snapcraft will not allow --yes for promotions of the edge channel
run: |
snapcraft promote checkbox16 --from-channel latest/edge --to-channel latest/beta --yes
snapcraft promote checkbox18 --from-channel latest/edge --to-channel latest/beta --yes
snapcraft promote checkbox20 --from-channel latest/edge --to-channel latest/beta --yes
snapcraft promote checkbox22 --from-channel latest/edge --to-channel latest/beta --yes
# Note: using `yes |` instead of `--yes` because snapcraft will
# refuse to non-interactively promote a snap from the edge
# channel if it is done without any branch qualifiers
yes | snapcraft promote checkbox16 --from-channel latest/edge --to-channel latest/beta
yes | snapcraft promote checkbox18 --from-channel latest/edge --to-channel latest/beta
yes | snapcraft promote checkbox20 --from-channel latest/edge --to-channel latest/beta
yes | snapcraft promote checkbox22 --from-channel latest/edge --to-channel latest/beta

checkbox_snap:
name: Checkbox snap packages
Expand All @@ -74,13 +79,18 @@ jobs:
run: |
sudo snap install snapcraft --classic
- name: Promote checkbox snaps to the beta channel
env:
SNAPCRAFT_HAS_TTY: "true" # this is necessary because snapcraft will not allow --yes for promotions of the edge channel
run: |
snapcraft promote checkbox --from-channel uc16/edge --to-channel uc16/beta --yes
snapcraft promote checkbox --from-channel uc18/edge --to-channel uc18/beta --yes
snapcraft promote checkbox --from-channel uc20/edge --to-channel uc20/beta --yes
snapcraft promote checkbox --from-channel uc22/edge --to-channel uc22/beta --yes
snapcraft promote checkbox --from-channel 16.04/edge --to-channel 16.04/beta --yes
snapcraft promote checkbox --from-channel 18.04/edge --to-channel 18.04/beta --yes
snapcraft promote checkbox --from-channel 20.04/edge --to-channel 20.04/beta --yes
snapcraft promote checkbox --from-channel 22.04/edge --to-channel 22.04/beta --yes
snapcraft promote checkbox --from-channel 22.04/edge --to-channel latest/beta --yes
# Note: using `yes |` instead of `--yes` because snapcraft will
# refuse to non-interactively promote a snap from the edge
# channel if it is done without any branch qualifiers
yes | snapcraft promote checkbox --from-channel uc16/edge --to-channel uc16/beta
yes | snapcraft promote checkbox --from-channel uc18/edge --to-channel uc18/beta
yes | snapcraft promote checkbox --from-channel uc20/edge --to-channel uc20/beta
yes | snapcraft promote checkbox --from-channel uc22/edge --to-channel uc22/beta
yes | snapcraft promote checkbox --from-channel 16.04/edge --to-channel 16.04/beta
yes | snapcraft promote checkbox --from-channel 18.04/edge --to-channel 18.04/beta
yes | snapcraft promote checkbox --from-channel 20.04/edge --to-channel 20.04/beta
yes | snapcraft promote checkbox --from-channel 22.04/edge --to-channel 22.04/beta
yes | snapcraft promote checkbox --from-channel 22.04/edge --to-channel latest/beta