Skip to content

Commit

Permalink
Merge pull request #1 from OpenFn/allow-multiple-projects-per-repo
Browse files Browse the repository at this point in the history
Pull from Lightning on the default branch
  • Loading branch information
taylordowns2000 authored Apr 5, 2024
2 parents 60f846e + bc77639 commit d93758d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,39 @@ inputs:
secret_input:
description: "OpenFN API KEY"
required: true
config_path_input:
description: "OpenFN Path to Config"
required: true
project_id_input:
description: "OpenFN Project ID"
required: true
branch_input:
description: 'Branch to commit the project state and spec'
required: true
commit_message_input:
description: "Pull Commit Message"
required: true
runs:
using: "composite"
steps:
- name: Checkout Project export
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch_input }}
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: |
npm install -g @openfn/cli
openfn pull $OPENFN_PROJECT_ID -c config.json --no-confirm
openfn pull $OPENFN_PROJECT_ID --config-path $OPENFN_CONFIG_PATH --no-confirm
shell: bash
env:
OPENFN_API_KEY: ${{ inputs.secret_input }}
OPENFN_PROJECT_ID: ${{ inputs.project_id_input }}
OPENFN_CONFIG_PATH: ${{ inputs.config_path_input }}
- name: Commit new state file
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: ${{ inputs.commit_message_input }}
branch: ${{ inputs.branch_input }}

0 comments on commit d93758d

Please sign in to comment.