Skip to content

feat(workflow): use variable for url in comment action #7

feat(workflow): use variable for url in comment action

feat(workflow): use variable for url in comment action #7

Workflow file for this run

---
name: Comment on PR
on:
pull_request:
types: [opened]
jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
env:
URL_DEVELOPMENT: ${{ vars.URL_DEVELOPMENT }}
with:
message: |
This is a link to a preview of the website from this Pull Request: [${{ vars.URL_DEVELOPMENT }}/${{ github.head_ref }}/](${{ vars.URL_DEVELOPMENT }}/${{ github.head_ref }}/).