forked from 2i2c-org/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.09 KB
/
comment-test-link-merged-pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Comment GitHub Actions link on a merged PR
on:
push:
branches:
- master
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: "master"
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"