From 78f450c6ac6d2f8c5c13d297a8d713d5a53f983d Mon Sep 17 00:00:00 2001 From: Martin M Date: Wed, 20 Dec 2023 16:08:49 +0100 Subject: [PATCH] Update setTag.yml --- .github/workflows/setTag.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/setTag.yml b/.github/workflows/setTag.yml index 9851f33a9..45c7230fb 100644 --- a/.github/workflows/setTag.yml +++ b/.github/workflows/setTag.yml @@ -4,30 +4,27 @@ name: Set tag on: workflow_dispatch: inputs: - action: + tag: type: choice - description: action to perform + description: select tag to set options: - - closeIssue - - reopenIssue + - latest + - next + - stable required: true - repository: + adapter: type: string - issue: + required: true + release: type: string + required: true jobs: set-tag: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 18 - - run: npm i - - run: npm run setTag - env: - OWN_GITHUB_TOKEN: ${{ secrets.OWN_GITHUB_TOKEN }} - ACTION: ${{ github.event.inputs.action }} - REPOSITORY: ${{ github.event.inputs.repository }} - ISSUE: ${{ github.event.inputs.issue }} + - run: npm dist-tag list iobroker.webui + - run: npm --//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}} dist-tag add iobroker.${{ github.event.inputs.adapter }}@${{ github.event.inputs.release }} ${{ github.event.inputs.tag }}