Merge pull request #4778 from developmentseed/nasa-update-images-2024… #1560
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
name: Comment GitHub Actions link on a merged PR | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- deployer/** | |
- requirements.txt | |
- helm-charts/** | |
- config/clusters/** | |
- .github/actions/setup-deploy/** | |
jobs: | |
comment-actions-links: | |
runs-on: ubuntu-latest | |
permissions: | |
# Grant GITHUB_TOKEN permissions to read a list of workflows for the repo | |
# and to comment on Pull Requests | |
actions: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- run: pip install requests | |
- run: python extra-scripts/comment-test-link-merged-pr.py | |
env: | |
COMMIT_MSG: ${{ github.event.head_commit.message }} | |
GITHUB_REPO: ${{ github.repository }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: "main" | |
EVENT: "push" | |
# WORKFLOW_NAME *MUST* match what is set in the name field in the | |
# deploy-hubs.yaml workflow file | |
# https://github.com/2i2c-org/infrastructure/blob/HEAD/.github/workflows/deploy-hubs.yaml | |
WORKFLOW_NAME: "Deploy and test hubs" |