Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 2 - Formulas Scheduler (Secrets)

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Setup Python Version
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Ritchie Installation & Initialization
run: |
curl -fsSL https://commons-repo.ritchiecli.io/install.sh | bash
echo '{"addCommons":false, "sendMetrics":false, "runType":"local"}' | rit init --stdin

- name: Ritchie Formula Get Github User (Python) Execution
env:
USERNAME_DEMO: ${{ secrets.USERNAME_DEMO }}
USERNAME_CREDENTIAL: ${{ secrets.USERNAME_CREDENTIAL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
rit add repo --provider="Github" --name="formulas-github" --repoUrl="https://github.com/GuillaumeFalourd/formulas-github" --priority=1
rit set credential --provider=github --fields=username,token --values="$USERNAME_CREDENTIAL","$GITHUB_TOKEN"
rit github get user --rit_github_username="$USERNAME_DEMO" --rit_repo_details="no" --rit_keep_file="no"