Skip to content

Commit

Permalink
Merge pull request #568 from OpenFn/gh-sync-troubleshooting
Browse files Browse the repository at this point in the history
Instructions for broken sync from before July 17
  • Loading branch information
aleksa-krolls authored Sep 14, 2024
2 parents dcbdfdb + 52c9bae commit 0b8dbf9
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions docs/manage-projects/link-to-gh.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,3 +333,50 @@ your-git-monorepo
├── projectState.json
└── projectSpec.yaml
```

## Troubleshooting

### Github Sync Error: Unexpected inputs provided: ["snapshots"]

If you installed GitHub sync before July 17th, 2024 you may need to update your `.github/workflows/openfn-pull.yml` file to match:

```
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/cli-pull-action@v1.1.0
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 }}
```

0 comments on commit 0b8dbf9

Please sign in to comment.