From 3b89e71dd0122592d1f293e2b2d2a1ee2e938314 Mon Sep 17 00:00:00 2001 From: Dai MIKURUBE Date: Thu, 4 Jul 2024 17:34:53 +0900 Subject: [PATCH] Try installing Embulk --- .github/actions/install-embulk/action.yml | 21 +++++++++++++++++++++ .github/workflows/input-postgresql.yml | 5 ++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/actions/install-embulk/action.yml diff --git a/.github/actions/install-embulk/action.yml b/.github/actions/install-embulk/action.yml new file mode 100644 index 0000000..6512b43 --- /dev/null +++ b/.github/actions/install-embulk/action.yml @@ -0,0 +1,21 @@ +name: "Download Embulk" + +inputs: + version: + description: "Version of Embulk to download" + type: string + required: true + +runs: + using: "composite" + steps: + - name: checkout + uses: actions/checkout@v4 + + - id: download + name: Download Embulk ${{ inputs.version }} + env: + EMBULK_VERSION: ${{ inputs.version }} + EMBULK_URL: "https://github.com/embulk/embulk/releases/download/v${{ inputs.version }}/embulk-${{ inputs.version }}.jar" + run: echo ${EMBULK_URL} + shell: bash diff --git a/.github/workflows/input-postgresql.yml b/.github/workflows/input-postgresql.yml index ca6cf11..543f8c7 100644 --- a/.github/workflows/input-postgresql.yml +++ b/.github/workflows/input-postgresql.yml @@ -5,7 +5,7 @@ on: schedule: - cron: "0 18 * * *" # 3am in Asia/Tokyo jobs: - check: + input-with-postgresql: runs-on: ubuntu-latest # push: always run. # pull_request: run only when the PR is submitted from a forked repository, not within this repository. @@ -19,3 +19,6 @@ jobs: with: java-version: 8 distribution: "temurin" + - uses: ./.github/actions/install-embulk + with: + version: "0.11.4"