ci: Remove workflow_dispatch
@@ -2,11 +2,6 @@ name: publish-release-to-ghcr
on:
release:
types: [published]
- workflow_dispatch:
- ref:
- description: "Branch, tag or SHA to checkout"
- required: true
- default: "master"
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
@@ -27,7 +22,7 @@ jobs:
- name: Get image repository
run: echo IMAGE_REPOSITORY=$(echo ghcr.io/${{ github.actor }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
- name: Get the release
- run: echo RELEASE=${{ github.event.inputs.ref }} >> $GITHUB_ENV
+ run: echo RELEASE=${GITHUB_REF/refs\/tags\//} >> $GITHUB_ENV
- name: Login to Registry
uses: docker/login-action@v2
with:
