forked from eclipse-volttron/volttron-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.6 KB
/
downstream-update-trigger.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
49
50
name: Update to latest VOLTTRON (develop branch).
on:
workflow_dispatch:
jobs:
update-volttron:
runs-on: ubuntu-22.04
steps:
- name: Update Dependencies Triggered
run: |
echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
echo "Event '${{ github.event.action }}' received from '${{ github.event.client_payload.repository }}'"
echo "Payload from downstream workflow: '${{ toJson(github.event.client_payload) }}'"
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: develop
- name: Set up Python ${{ env.PYTHON_VERSION }}
id: setup-python
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
#----------------------------------------------
# ----- install & configure poetry -----
#----------------------------------------------
- name: Install Poetry
uses: snok/install-poetry@v1.3
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Update to latest volttron and update dependencies
run: |
poetry add "volttron@latest"
poetry update
- name: Commit changes
uses: EndBug/add-and-commit@v9.1.1
with:
default_author: github_actor
# default_author: eclipse-volttron-bot