Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 3fa79ed

Browse files
committed
alice: ci: shouldi: contribute: Basic job
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
1 parent 00cc227 commit 3fa79ed

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Alice Please Contribute Recommended Community Standards
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
repo_url:
7+
description: 'URL of git repo to contribute community standards to'
8+
required: true
9+
type: string
10+
11+
12+
jobs:
13+
contribute:
14+
name: Contribute
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Set up Python 3.9
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.9
21+
- name: Configure git user info
22+
run: |
23+
git config --global user.email "alice@contribute.shouldi.ci.dffml.chadig.com"
24+
git config --global user.name "Alice"
25+
- name: Configure github CLI auth
26+
env:
27+
GH_USER: aliceoa
28+
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN_ALICE_PLEASE_CONTRIBUTE }}
29+
run: |
30+
mkdir -p ~/.config/gh/
31+
echo "github.com:" > ~/.config/gh/hosts.yml
32+
echo " oauth_token: ${GH_ACCESS_TOKEN}" >> ~/.config/gh/hosts.yml
33+
echo " user: ${GH_USER}" >> ~/.config/gh/hosts.yml
34+
echo " git_protocol: https" >> ~/.config/gh/hosts.yml
35+
gh auth setup-git
36+
- name: Install python dependencies
37+
run: |
38+
set -x
39+
pip install -U pip setuptools wheel
40+
- name: Install dependencies
41+
run: |
42+
set -x
43+
export ALICE_STATE_OF_ART_COMMIT=cdec226e72316121d7399a3b171253bde0ce62d9
44+
# TODO Update dffml to install from next release once rolled (0.5.0).
45+
pip install \
46+
"https://github.com/intel/dffml/archive/${ALICE_STATE_OF_ART_COMMIT}.zip#egg=dffml" \
47+
"https://github.com/intel/dffml/archive/${ALICE_STATE_OF_ART_COMMIT}.zip#egg=dffml-feature-git&subdirectory=feature/git" \
48+
"https://github.com/intel/dffml/archive/${ALICE_STATE_OF_ART_COMMIT}.zip#egg=shouldi&subdirectory=examples/shouldi" \
49+
"https://github.com/intel/dffml/archive/${ALICE_STATE_OF_ART_COMMIT}.zip#egg=dffml-config-yaml&subdirectory=configloader/yaml" \
50+
"https://github.com/intel/dffml/archive/${ALICE_STATE_OF_ART_COMMIT}.zip#egg=dffml-source-mongodb&subdirectory=source/mongodb" \
51+
"https://github.com/intel/dffml/archive/${ALICE_STATE_OF_ART_COMMIT}.zip#egg=dffml-operations-innersource&subdirectory=operations/innersource" \
52+
"https://github.com/intel/dffml/archive/${ALICE_STATE_OF_ART_COMMIT}.zip#egg=alice&subdirectory=entities/alice"
53+
- name: DFFML Version
54+
run: dffml version
55+
- name: Make contribution
56+
env:
57+
REPO_URL: ${{ github.event.inputs.repo_url }}
58+
run: |
59+
set -x
60+
pwd
61+
cd $(mktemp -d)
62+
pwd
63+
alice shouldi contribute -keys "${REPO_URL}" -log debug

0 commit comments

Comments
 (0)