diff --git a/.github/workflows/publish-snaps.yaml b/.github/workflows/publish-snaps.yaml index b1cd9c2..8909174 100644 --- a/.github/workflows/publish-snaps.yaml +++ b/.github/workflows/publish-snaps.yaml @@ -6,13 +6,6 @@ on: coder_version: description: "Coder version" required: true - release_channel: - description: "Release channel" - required: true - type: choice - options: - - stable - - mainline repository_dispatch: types: [coder-release] @@ -35,18 +28,8 @@ jobs: run: | if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then echo "coder_version=${{ github.event.client_payload.coder_version }}" >> "$GITHUB_OUTPUT" - if [[ "${{ github.event.client_payload.release_channel }}" == "stable" ]]; then - echo "release_channel=stable" >> "$GITHUB_OUTPUT" - else - echo "release_channel=candidate" >> "$GITHUB_OUTPUT" - fi elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then echo "coder_version=${{ github.event.inputs.coder_version }}" >> "$GITHUB_OUTPUT" - if [[ "${{ github.event.inputs.release_channel }}" == "stable" ]]; then - echo "release_channel=stable" >> "$GITHUB_OUTPUT" - else - echo "release_channel=candidate" >> "$GITHUB_OUTPUT" - fi else echo "Unknown event: ${{ github.event_name }}" exit 1 @@ -59,10 +42,8 @@ jobs: - uses: snapcore/action-build@v1 id: build - if: ${{ steps.metadata.outputs.release_channel == 'mainline' }} - + - uses: snapcore/action-publish@v1 - if: ${{ steps.metadata.outputs.release_channel == 'mainline' }} env: SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} with: