-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
77 lines (76 loc) · 2.71 KB
/
action.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Update TAC data from LFX
description: Action that syncs data from LFX into the TAC website
inputs:
landscape_url:
description: "URL for the project's landscape"
default: ""
artwork_url:
description: "URL for the project's artwork repo"
default: ""
lfx_tac_committee_url:
description: "URL to the committee in LFX"
default: ""
tac_agenda_gh_project_url:
description: "URL for the GitHub Project in the TAC repo for managing TAC meeting agendas"
default: ""
runs:
using: composite
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- name: Check out repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: ${{ env.token }}
repository: ${{ env.repository }}
ref: ${{ env.ref }}
path: tac-repo
- name: Checkout lfx-tac-actions
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7@v4
with:
token: ${{ env.token }}
repository: jmertic/lfx-tac-actions
path: lfx-tac-actions
- name: Set up Python 3.x
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.x'
- name: Install poetry
uses: abatilo/actions-poetry@e78f54a89cb052fff327414dd9ff010b5d2b4dbd # v3.0.1
- name: Install dependencies
shell: bash
working-directory: ./lfx-tac-actions
run: |
poetry install
- name: Run build
working-directory: ./lfx-tac-actions
shell: bash
env:
LANDSCAPE_URL: ${{ inputs.landscape_url }}
ARTWORK_URL: ${{ inputs.artwork_url }}
LFX_TAC_COMMITTEE_URL: ${{ inputs.lfx_tac_committee_url }}
TAC_AGENDA_GH_PROJECT_URL: ${{ inputs.tac_agenda_gh_project_url }}
GH_TOKEN: ${{ env.token }}
GITHUB_TOKEN: ${{ env.token }}
run: |
poetry run updateprojects -o ../tac-repo/_data/projects.csv
poetry run updatetacmembers -o ../tac-repo/_data/tacmembers.csv
poetry run updatetacagendaitems -o ../tac-repo/_data/meeting-agenda-items.csv
poetry run updateclomonitor -o ../tac-repo/_data/clomonitor.yaml
- name: Get current date
id: date
uses: Kaven-Universe/github-action-current-date-time@f2c12d90cff9c3e7b1f50430886e632fe31fcee1 # v1.4.0
with:
format: "YYYY-MM-DD"
- name: Create Pull Request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
token: ${{ env.token }}
branch-suffix: timestamp
path: ./tac-repo
title: "Update Data Sources from LFX ${{ steps.date.outputs.time }}"
labels: automerge
commit-message: Update Data Sources from LFX
signoff: true