on:
  push:
    # Sequence of patterns matched against refs/tags
    tags:
    - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
    - 'protocol*' # Push events to matching v*, i.e. v1.0, v20.15.10
    
name: Create Draft Releases

jobs:

  release-tags:
    name: draft-release

    runs-on: ubuntu-latest

    steps:

    - name: Create Draft Release
      id: create_draft_release
      uses: actions/create-release@v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        tag_name: ${{ github.ref }}
        release_name: Release ${{ github.ref }}
        draft: true
        prerelease: false

on:
  push:
    # Sequence of patterns matched against refs/tags
    tags:
    - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
    - 'protocol/**' # Push events to matching protocol/foo/bar/v*, i.e. protocol/foo/bar/v1.0, protocol/foo/bar/v20.15.10
    
name: Create Draft Releases

jobs:

  release-tags:
    name: draft-release

    runs-on: ubuntu-latest

    steps:

    - name: Create Draft Release
      id: create_draft_release
      uses: actions/create-release@v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        tag_name: ${{ github.ref }}
        release_name: Release ${{ github.ref }}
        draft: true
        prerelease: false

Correct github actions tag selection for draft releases.
Correct github actions tag selection for draft releases.

Correct github actions tag selection for draft releases.

Signed-off-by: Scott Nichols <7cffec84f3535751e7e39fdb515d54ec7792b8a5@vmware.com>