Skip to content

Commit

Permalink
Try installing Embulk
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikurube committed Jul 4, 2024
1 parent 7ea4819 commit 78f6b27
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/actions/install-embulk/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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: 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}
8 changes: 8 additions & 0 deletions .github/workflows/input-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
schedule:
- cron: "0 18 * * *" # 3am in Asia/Tokyo
jobs:
download:
uses: ./.github/workflows/install-embulk.yml
with:
version: "0.11.4"

check:
runs-on: ubuntu-latest
# push: always run.
Expand All @@ -19,3 +24,6 @@ jobs:
with:
java-version: 8
distribution: "temurin"
- uses: ./.github/actions/install-embulk
with:
version: "0.11.4"
24 changes: 24 additions & 0 deletions .github/workflows/install-embulk.yml
Original file line number Diff line number Diff line change
@@ -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: ${{ github.event.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}

0 comments on commit 78f6b27

Please sign in to comment.