Skip to content

Commit fd03840

Browse files
committed
[skip actions] Configure OpenFn: pull workflow
1 parent 634e315 commit fd03840

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/openfn-pull.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
projectId:
5+
description: 'OpenFN Project ID'
6+
required: true
7+
apiSecretName:
8+
description: 'OpenFN API Key secret name i.e OPENFN_project_API_KEY'
9+
required: true
10+
pathToConfig:
11+
description: 'Path to config.json'
12+
required: true
13+
branch:
14+
description: 'Branch to commit the project state and spec'
15+
required: true
16+
commitMessage:
17+
description: 'Commit message for project state and spec'
18+
required: true
19+
snapshots:
20+
description: 'IDs of snapshots separated by spaces'
21+
required: false
22+
23+
jobs:
24+
pull-from-lightning:
25+
runs-on: ubuntu-latest
26+
permissions:
27+
contents: write
28+
name: A job to pull changes from Lightning
29+
steps:
30+
- name: openfn pull and commit
31+
uses: openfn/[email protected]
32+
with:
33+
secret_input: ${{ secrets[inputs.apiSecretName] }}
34+
project_id_input: ${{ inputs.projectId }}
35+
config_path_input: ${{ inputs.pathToConfig }}
36+
branch_input: ${{ inputs.branch }}
37+
commit_message_input: ${{ inputs.commitMessage }}
38+
snapshots_input: ${{ inputs.snapshots }}

0 commit comments

Comments
 (0)