Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create snapshot of live v2 project, update Readme.md #135

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
branches:
- v2_staging

concurrency:
group: openfn-deployment
cancel-in-progress: false

jobs:
deploy-to-lightning:
runs-on: ubuntu-latest
name: A job to deploy to Lightning
permissions:
contents: write
steps:
- name: openfn deploy
uses: openfn/cli-deploy-action@v1.0.0
with:
secret_input: ${{ secrets.OPENFN_a5573c8f_bfbd_447e_8e1d_5bab1d2901e7_API_KEY }}
config_path_input: 'openfn-a5573c8f-bfbd-447e-8e1d-5bab1d2901e7-config.json'
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

Lwala uses OpenFn to integrate its Salesforce database and CommCare CHW mobile application. The OpenFn jobs in this repository automate a bi-directional dataflow between the CommCare and Salesforce systems, ensuring regular data syncs and feedback loops for CHWs.

*N.B. Any commits to the `master` branch will be automatically deployed to
Lwala's OpenFn project*
## Notes on Version Control

Lwala is running on OpenFn v2, and is being backed up on the `v2_staging` branch. What currently is on the `master` branch is a *snapshot* of the project/the `v2_staging` branch. Any live changes going forward will be synced to `v2_staging`.

## Worflows
OpenFn jobs are used to automate the following workflows between CommCare and Salesforce. This integration is event-driven (triggered whenever a record is created/ updated). [This diagram](https://lucid.app/lucidchart/e3411bda-1f0e-492f-b35d-6baf2dd3972a/edit?view_items=laxJTiq3D_aN&invitationId=inv_269ce3a1-612b-49b8-ab06-4805e3e483de#) provides an overview of how data flows from CommCare forms to Salesforce objects through OpenFn jobs.
Expand Down
5 changes: 5 additions & 0 deletions openfn-a5573c8f-bfbd-447e-8e1d-5bab1d2901e7-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"endpoint": "https://app.openfn.org",
"specPath": "openfn-a5573c8f-bfbd-447e-8e1d-5bab1d2901e7-spec.yaml",
"statePath": "openfn-a5573c8f-bfbd-447e-8e1d-5bab1d2901e7-state.json"
}
Loading
Loading