generated from deploymenttheory/Template
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) · 1.01 KB
/
update_pr.yml
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
36
37
38
39
40
41
42
43
44
name: Add PR Comment
on:
workflow_call:
inputs:
artifact-name:
required: true
type: string
target-pr-number:
required: true
type: number
jobs:
update-pr:
runs-on: ubuntu-latest
permissions:
packages: read
pull-requests: write
contents: write
container:
image: ghcr.io/${{ github.repository }}/python:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Download artifact
id: download-artifact
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact-name }}
- name: Run pr update python utility
run: python .github/scripts/update_pr.py
env:
REPO: ${{ github.repository }}
ARTIFACT_PATH: ${{ steps.download-artifact.outputs.download-path }}/${{vars.ARTIFACT_FN}}
TARGET_PR_NUMBER: ${{ inputs.target-pr-number}}