Skip to content

Commit

Permalink
Add an action to download Embulk
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikurube committed Jul 4, 2024
1 parent 7ea4819 commit 2959744
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/actions/install-embulk/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Download Embulk"

inputs:
version:
description: "Version of Embulk to download"
type: string
required: false
default: "0.11.4"

runs:
using: "composite"
steps:
- name: checkout
uses: actions/checkout@v4

- id: download
name: Download Embulk ${{ inputs.version }}
env:
EMBULK_URL: "https://github.com/embulk/embulk/releases/download/v${{ inputs.version }}/embulk-${{ inputs.version }}.jar"
run: curl --location --output "embulk.jar" "${EMBULK_URL}"
shell: bash

- id: version
name: Create a version file
env:
EMBULK_VERSION: ${{ inputs.version }}
run: echo "${EMBULK_VERSION}" > embulk-${EMBULK_VERSION}.txt
shell: bash
9 changes: 8 additions & 1 deletion .github/workflows/input-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -14,8 +14,15 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v4

- name: Set up OpenJDK 8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: "temurin"

- name: Download Embulk
uses: ./.github/actions/install-embulk

- name: List files
run: ls -la

0 comments on commit 2959744

Please sign in to comment.