#
# -- testtrigger,yml  - testing of event triggering
#
name: Test Release Trigger
on:
  workflow_dispatch:
  # workflow_run:
  #   workflows: [Create Release]
  #   types:
  #     - completed
  #repository_dispatch:
  #  types: [release]
jobs:
  build:
    name: Test Release Trigger
    runs-on: ubuntu-latest
    steps:
    - name: Checkout GLE
      uses: actions/checkout@v4

    - name: Upload asset based on tag
      uses: svenstaro/upload-release-action@v2
      with:
        repo_token: ${{ secrets.GITHUB_TOKEN }}
        file: ./src/CMakeLists.txt
        tag: ${{ github.event.client_payload.tag }}
