diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index cb323d64a9..8b6a3b48bd 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -1,13 +1,27 @@ name: Nightly -on: workflow_dispatch +on: + workflow_dispatch: + inputs: + version: + description: Nightly version number + required: false + type: string + default: '' + ref: + description: Branch, tag, or SHA to release + required: false + type: string + default: '' jobs: - build: + nightly: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + ref: ${{ inputs.ref }} - name: Setup Node uses: actions/setup-node@v3 with: @@ -21,6 +35,6 @@ jobs: with: repo_token: "${{ secrets.GITHUB_TOKEN }}" automatic_release_tag: "nightly" - title: "Nightly" + title: "Nightly ${{ inputs.version }}" prerelease: true files: '*.tgz'