Skip to content

Commit

Permalink
default github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
taylordowns2000 committed Jan 11, 2024
1 parent ef9e5bb commit a458c7c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
push:
branches:
- main

jobs:
deploy-to-lightning:
runs-on: ubuntu-latest
name: A job to deploy to Lightning
steps:
- name: openfn deploy
uses: OpenFn/[email protected]
with:
secret_input: ${{ secrets.OPENFN_API_KEY }}
16 changes: 16 additions & 0 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on: [repository_dispatch]

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.OPENFN_API_KEY }}
project_id_input: ${{ secrets.OPENFN_PROJECT_ID }}
commit_message_input:
'user ${{ github.event.client_payload.message }}'

0 comments on commit a458c7c

Please sign in to comment.