From a458c7c95f8bb6ca4f185522e75a745c6b25d6a8 Mon Sep 17 00:00:00 2001 From: Taylor Downs Date: Thu, 11 Jan 2024 13:50:02 +0000 Subject: [PATCH] default github actions --- .github/workflows/deploy.yml | 14 ++++++++++++++ .github/workflows/pull.yml | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/deploy.yml create mode 100644 .github/workflows/pull.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..c83ba77 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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/cli-deploy-action@v0.1.11 + with: + secret_input: ${{ secrets.OPENFN_API_KEY }} diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml new file mode 100644 index 0000000..22a8c04 --- /dev/null +++ b/.github/workflows/pull.yml @@ -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/cli-pull-action@v0.7.0 + with: + secret_input: ${{ secrets.OPENFN_API_KEY }} + project_id_input: ${{ secrets.OPENFN_PROJECT_ID }} + commit_message_input: + 'user ${{ github.event.client_payload.message }}'