diff --git a/action.yml b/action.yml index 73d65d8..f942bcc 100644 --- a/action.yml +++ b/action.yml @@ -19,6 +19,9 @@ inputs: commit_message_input: description: "Pull Commit Message" required: true + snapshots_input: + description: 'IDs of snapshots separated by spaces' + required: false runs: using: "composite" steps: @@ -32,7 +35,12 @@ runs: node-version: 18.x - run: | npm install -g @openfn/cli - openfn pull $OPENFN_PROJECT_ID --config-path $OPENFN_CONFIG_PATH --no-confirm + + if [ -z "${{ inputs.snapshots_input }}" ]; then + openfn pull $OPENFN_PROJECT_ID --config-path $OPENFN_CONFIG_PATH --no-confirm + else + openfn pull $OPENFN_PROJECT_ID --config-path $OPENFN_CONFIG_PATH --snapshots ${{ inputs.snapshots_input }} --no-confirm + fi shell: bash env: OPENFN_API_KEY: ${{ inputs.secret_input }}