Skip to content

Provide a triggered workflow clickable link #539

Closed
@hariapollo

Description

@hariapollo

Is your feature request related to a problem? Please describe.
I am using this action to trigger another workflow, so to check the triggered workflow i need to go to tabs and find the my triggered workflow, instead it would be good if we also provide the link of that one directly from the script, so that user can simply click on that and it will redirect to workflow run. that reduce a friction.

- name: Trigger Collections Permissions Workflow
  id: trigger_workflow
  uses: actions/github-script@v7
  with:
    github-token: ${{ secrets.APOLLOIO_TOKEN }}
    result-encoding: json
    script: |
      const response = await github.rest.actions.createWorkflowDispatch({
        owner: 'app',
        repo: 'app',
        workflow_id: 'create_collections.yml',
        ref: '${{ github.head_ref }}',
      });

      console.log('Workflow triggered successfully', click this link to see workflow - https://github.com/app/app/actions/runs/13193992313);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions