Skip to content

Commit 64f308a

Browse files
authored
Update publish-snaps.yaml
1 parent 2380ea4 commit 64f308a

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

.github/workflows/publish-snaps.yaml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ on:
66
coder_version:
77
description: "Coder version"
88
required: true
9-
release_channel:
10-
description: "Release channel"
11-
required: true
12-
type: choice
13-
options:
14-
- stable
15-
- mainline
169
repository_dispatch:
1710
types: [coder-release]
1811

@@ -35,18 +28,8 @@ jobs:
3528
run: |
3629
if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
3730
echo "coder_version=${{ github.event.client_payload.coder_version }}" >> "$GITHUB_OUTPUT"
38-
if [[ "${{ github.event.client_payload.release_channel }}" == "stable" ]]; then
39-
echo "release_channel=stable" >> "$GITHUB_OUTPUT"
40-
else
41-
echo "release_channel=candidate" >> "$GITHUB_OUTPUT"
42-
fi
4331
elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
4432
echo "coder_version=${{ github.event.inputs.coder_version }}" >> "$GITHUB_OUTPUT"
45-
if [[ "${{ github.event.inputs.release_channel }}" == "stable" ]]; then
46-
echo "release_channel=stable" >> "$GITHUB_OUTPUT"
47-
else
48-
echo "release_channel=candidate" >> "$GITHUB_OUTPUT"
49-
fi
5033
else
5134
echo "Unknown event: ${{ github.event_name }}"
5235
exit 1
@@ -59,10 +42,8 @@ jobs:
5942
6043
- uses: snapcore/action-build@v1
6144
id: build
62-
if: ${{ steps.metadata.outputs.release_channel == 'mainline' }}
63-
45+
6446
- uses: snapcore/action-publish@v1
65-
if: ${{ steps.metadata.outputs.release_channel == 'mainline' }}
6647
env:
6748
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
6849
with:

0 commit comments

Comments
 (0)