Skip to content

Latest commit

 

History

History

post-preview-urls

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

🔋 Pleo SPA CI/CD - Post Preview URLs Action

Description

Append the URLs for branch app and storybook preview deployments to the PR description.

Example Use

- name: Update PR Description
  uses: pleo-io/pleo-tools/actions/post-preview-urls@v6
  with:
      app_name: My App
      links: |
          [
            {"name": "Latest", "url": "https://${{ steps.branch-hostname.outputs.label }}.${{ inputs.domain_name }}"},
            {"name": "Current Permalink", "url": "${{ steps.deployment-url.outputs.url }}"}
          ]

Inputs

parameter description required default
token GitHub token used to update the PR description false ${{ github.token }}
links JSON specification of links to post to the PR description (Array<{name: string, url: string}>) true
as_labels If true, the URL is not displayed and all links are rendered as a comma-separated list false false
app_name The name displayed in the link section title false 🤖 App

Runs

This action is a node20 action.