-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.06 KB
/
update.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
name: Update Stack
on:
workflow_dispatch:
inputs:
stack:
type: string
required: true
environment:
type: string
required: true
image:
type: string
required: true
tag:
type: string
required: true
jobs:
update-stack:
name: Update Stack File
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: poetry
- run: poetry install
- name: Update stack
run: poetry run python _tools/update-stack.py '${{ inputs.stack }}' '${{ inputs.environment }}' '${{ inputs.image }}' '${{ inputs.tag }}'
- name: Push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '[email protected]'
git commit -am 'Update ${{ inputs.stack }} ${{ inputs.environment }}'
git push