diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index e2eacce00..43104a35d 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -35,7 +35,7 @@ on: force_met_image: description: 'MET DockerHub repo to force run to use, e.g. met:11.1.0 or met-dev:feature_XYZ_name-PR. Leave this blank to determine repo automatically.' repository: - description: 'Repository that triggered workflow (used by external repo triggering)' + description: 'Repository that triggered workflow if triggered by external repo or title of workflow run if triggered via web interface' sha: description: 'Commit hash that triggered the event (used by external repo triggering)' ref: @@ -48,7 +48,7 @@ on: jobs: event_info: - name: "Trigger: ${{ github.event_name != 'workflow_dispatch' && github.event_name || github.event.inputs.repository }} ${{ github.event_name != 'workflow_dispatch' && 'event' || github.event.inputs.sha }} ${{ github.event_name != 'workflow_dispatch' && 'local' || github.event.inputs.actor }} " + name: "Trigger: ${{ github.event_name != 'workflow_dispatch' && github.event_name || (github.event.inputs.repository || 'Manual Trigger Testing') }} ${{ github.event_name != 'workflow_dispatch' && 'event' || github.event.inputs.sha }} ${{ github.event_name != 'workflow_dispatch' && 'local' || github.event.inputs.actor }} " runs-on: ubuntu-latest steps: - name: Print GitHub values for reference @@ -59,7 +59,7 @@ jobs: # message is too long continue-on-error: true - name: Build URL for commit that triggered workflow - if: github.event_name == 'workflow_dispatch' + if: github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.repository, 'dtcenter/') && github.event.inputs.sha run: echo https://github.com/${{ github.event.inputs.repository }}/commit/${{ github.event.inputs.sha }} job_control: