generated from OpenFn/project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip actions] Configure OpenFn: pull workflow
- Loading branch information
1 parent
634e315
commit fd03840
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
projectId: | ||
description: 'OpenFN Project ID' | ||
required: true | ||
apiSecretName: | ||
description: 'OpenFN API Key secret name i.e OPENFN_project_API_KEY' | ||
required: true | ||
pathToConfig: | ||
description: 'Path to config.json' | ||
required: true | ||
branch: | ||
description: 'Branch to commit the project state and spec' | ||
required: true | ||
commitMessage: | ||
description: 'Commit message for project state and spec' | ||
required: true | ||
snapshots: | ||
description: 'IDs of snapshots separated by spaces' | ||
required: false | ||
|
||
jobs: | ||
pull-from-lightning: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
name: A job to pull changes from Lightning | ||
steps: | ||
- name: openfn pull and commit | ||
uses: openfn/[email protected] | ||
with: | ||
secret_input: ${{ secrets[inputs.apiSecretName] }} | ||
project_id_input: ${{ inputs.projectId }} | ||
config_path_input: ${{ inputs.pathToConfig }} | ||
branch_input: ${{ inputs.branch }} | ||
commit_message_input: ${{ inputs.commitMessage }} | ||
snapshots_input: ${{ inputs.snapshots }} |