diff --git a/.github/actions/install-embulk/action.yml b/.github/actions/install-embulk/action.yml new file mode 100644 index 0000000..a956741 --- /dev/null +++ b/.github/actions/install-embulk/action.yml @@ -0,0 +1,24 @@ +name: Download Embulk + +on: + workflow_call: + inputs: + version: + description: "Version of Embulk to download" + type: string + required: true + +jobs: + download-embulk: + runs-on: ubuntu-latest + steps: + - id: url + name: Fix the download URL + env: + EMBULK_VERSION: ${{ inputs.version }} + run: echo "download_url=https://github.com/embulk/embulk/releases/download/v${EMBULK_VERSION}/embulk-${EMBULK_VERSION}.jar" >> $GITHUB_OUTPUT + - id: download + name: Download the Embulk executable binary + env: + EMBULK_URL: ${{ steps.url.outputs.download_url }} + run: echo ${EMBULK_URL} diff --git a/.github/workflows/input-postgresql.yml b/.github/workflows/input-postgresql.yml index ca6cf11..65e57e5 100644 --- a/.github/workflows/input-postgresql.yml +++ b/.github/workflows/input-postgresql.yml @@ -19,3 +19,7 @@ jobs: with: java-version: 8 distribution: "temurin" + - name: Download Embulk + uses: ./.github/actions/install-embulk + with: + version: 0.11.4