diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9affcae..37de4e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,14 +33,14 @@ jobs: name: watchdog-build path: watchdog.zip create_release: - name: Create repository release + name: Create release runs-on: ubuntu-latest needs: build steps: - name: Checkout code uses: actions/checkout@v3 with: - ref: ${{ inputs.tag }} + ref: ${{ inputs.tag || 'latest' }} - uses: actions/download-artifact@v2 with: name: watchdog-build @@ -49,7 +49,7 @@ jobs: uses: ncipollo/release-action@v1 with: artifacts: 'watchdog.zip' - tag: ${{ inputs.tag }} + tag: ${{ inputs.tag || 'latest' }} replacesArtifacts: true allowUpdates: true\\ bodyFile: "install_instructions.md"