Skip to content

Commit f59e896

Browse files
committed
Try installing Embulk
1 parent 7ea4819 commit f59e896

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Download Embulk"
2+
3+
inputs:
4+
version:
5+
description: "Version of Embulk to download"
6+
type: string
7+
required: true
8+
9+
runs:
10+
using: "composite"
11+
steps:
12+
- id: url
13+
name: Fix the download URL
14+
env:
15+
EMBULK_VERSION: ${{ inputs.version }}
16+
run: echo "download_url=https://github.com/embulk/embulk/releases/download/v${EMBULK_VERSION}/embulk-${EMBULK_VERSION}.jar" >> $GITHUB_OUTPUT
17+
- id: download
18+
name: Download the Embulk executable binary
19+
env:
20+
EMBULK_URL: ${{ steps.url.outputs.download_url }}
21+
run: echo ${EMBULK_URL}

.github/workflows/input-postgresql.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
schedule:
66
- cron: "0 18 * * *" # 3am in Asia/Tokyo
77
jobs:
8+
download:
9+
uses: ./.github/workflows/install-embulk.yml
10+
with:
11+
version: "0.11.4"
12+
813
check:
914
runs-on: ubuntu-latest
1015
# push: always run.
@@ -19,3 +24,6 @@ jobs:
1924
with:
2025
java-version: 8
2126
distribution: "temurin"
27+
- uses: ./.github/actions/install-embulk
28+
with:
29+
version: "0.11.4"

.github/workflows/install-embulk.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Download Embulk
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
version:
7+
description: "Version of Embulk to download"
8+
type: string
9+
required: true
10+
11+
jobs:
12+
download-embulk:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- id: url
16+
name: Fix the download URL
17+
env:
18+
EMBULK_VERSION: ${{ github.event.inputs.version }}
19+
run: echo "download_url=https://github.com/embulk/embulk/releases/download/v${EMBULK_VERSION}/embulk-${EMBULK_VERSION}.jar" >> $GITHUB_OUTPUT
20+
- id: download
21+
name: Download the Embulk executable binary
22+
env:
23+
EMBULK_URL: ${{ steps.url.outputs.download_url }}
24+
run: echo ${EMBULK_URL}

0 commit comments

Comments
 (0)