GitHub action for syncing data to effx 🔥
name: effx sync
on:
push:
branches:
- master
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Sync effx configuration with effx account
uses: effxhq/effx-sync-action@v1
with:
directory: ${GITHUB_WORKSPACE}
env:
EFFX_API_KEY: ${{ secrets.EFFX_API_KEY }}
📁 directory
(required) - The relative path to the directory containing configuration files you'd like synced.
🔑 EFFX_API_KEY
(required) - Your effx API key.
Setting directory
to ${GITHUB_WORKSPACE}
enables syncing for all files with the suffix effx.yaml
in your repo.
- Add this action to your repo.
- Head over to the effx website, navigate to Account Settings and find your API key.
- Add your effx API key by
- navigating to your repo's settings
- selecting Secrets from the side bar
- typing
EFFX_API_KEY
into the name field - pasting your effx API key into the value field
- The
yml
file foreffx-sync-action
will live in.github/workflows
. - Create a file named,
effx.yaml
or matching ***.effx.yaml
**and populate it with configurations. - On pushing to
master
,effx-sync-action
will parse your configuration file. 🥳