generated from deploymenttheory/Template
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (35 loc) · 1.01 KB
/
update_release.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
45
46
47
48
name: Add Release Comment
on:
workflow_call:
inputs:
artifact-name:
required: true
type: string
git-tag:
required: true
type: string
jobs:
update-release:
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_release.py
env:
REPO: ${{ github.repository }}
ARTIFACT_PATH: ${{ steps.download-artifact.outputs.download-path }}/${{ vars.ARTIFACT_FN }}
GIT_TAG: ${{ inputs.git-tag }}