New results #1504
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will add a comment to the PR with the development or dynamic site | |
name: Comment environment in PR | |
on: | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
comment_environment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🔔 | |
uses: actions/checkout@v3 | |
- name: Calculate Slot Number | |
id: calculate_slot | |
run: echo "slot=$(( ${{ github.event.pull_request.number }} % 4 ))" >> $GITHUB_ENV | |
- name: Comment PR | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: 'Dynamic branch URL: https://app-eligibilityestimator-dev-pr-preview-${{env.slot}}.azurewebsites.net' | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |