Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a triggered workflow clickable link #539

Open
hariapollo opened this issue Feb 7, 2025 · 0 comments
Open

Provide a triggered workflow clickable link #539

hariapollo opened this issue Feb 7, 2025 · 0 comments

Comments

@hariapollo
Copy link

hariapollo commented Feb 7, 2025

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant