File tree 1 file changed +1
-20
lines changed 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change 6
6
coder_version :
7
7
description : " Coder version"
8
8
required : true
9
- release_channel :
10
- description : " Release channel"
11
- required : true
12
- type : choice
13
- options :
14
- - stable
15
- - mainline
16
9
repository_dispatch :
17
10
types : [coder-release]
18
11
35
28
run : |
36
29
if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
37
30
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
43
31
elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
44
32
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
50
33
else
51
34
echo "Unknown event: ${{ github.event_name }}"
52
35
exit 1
59
42
60
43
- uses : snapcore/action-build@v1
61
44
id : build
62
- if : ${{ steps.metadata.outputs.release_channel == 'mainline' }}
63
-
45
+
64
46
- uses : snapcore/action-publish@v1
65
- if : ${{ steps.metadata.outputs.release_channel == 'mainline' }}
66
47
env :
67
48
SNAPCRAFT_STORE_CREDENTIALS : ${{ secrets.SNAPCRAFT_TOKEN }}
68
49
with :
You can’t perform that action at this time.
0 commit comments