diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml index 7b1ec46c..54885905 100644 --- a/.github/workflows/deploy-docs.yaml +++ b/.github/workflows/deploy-docs.yaml @@ -70,7 +70,7 @@ jobs: path: frontend - name: use node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: 'frontend/.nvmrc' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab4d78e8..258e2263 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,13 +8,22 @@ on: push: tags: - "*" + workflow_dispatch: + inputs: + tag: + description: 'Ref to release' + required: true + default: HEAD jobs: release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event_name == 'push' && github.ref || inputs.tag }} - name: Check helm + if: github.event_name == 'push' run: | version=$(grep -E "^version" deploy/charts/emqx-operator/Chart.yaml | grep -oE "[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|rc)\.[0-9])?") if [ "$version" != "${GITHUB_REF##*/}" ]; then @@ -42,7 +51,7 @@ jobs: with: images: | ${{ github.repository_owner }}/emqx-operator-controller - ghcr.io/${{ github.repository_owner }}/emqx-operator-controller + ghcr.io/${{ github.repository_owner }}/emqx-operator tags: | type=ref,event=branch type=ref,event=pr