Skip to content

Commit 3bac753

Browse files
authored
Feat(ci): hadoop mirroring (#48)
1 parent ca660d8 commit 3bac753

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/hadoop.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Hadoop
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
hadoop-version:
6+
required: true
7+
description: The Hadoop version (e.g. 3.2.0), should be in apache.archive.org
8+
9+
10+
jobs:
11+
build:
12+
name: Hadoop mirroring
13+
runs-on: ubuntu-20.04
14+
steps:
15+
- name: Download
16+
run: curl -L https://archive.apache.org/dist/hadoop/common/hadoop-${{ github.event.inputs.hadoop-version }}/hadoop-${{ github.event.inputs.hadoop-version }}.tar.gz -o hadoop-${{ github.event.inputs.hadoop-version }}.tar.gz
17+
- name: Release
18+
uses: softprops/action-gh-release@v1
19+
with:
20+
tag_name: hadoop-${{ github.event.inputs.hadoop-version }}
21+
body: Mirroring of the Hadoop ${{ github.event.inputs.hadoop-version }} package
22+
files: hadoop-${{ github.event.inputs.hadoop-version }}.tar.gz

0 commit comments

Comments
 (0)