forked from ursacomputing/crossbow
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.29 KB
/
submit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Submit
on:
workflow_call:
inputs:
report_type:
required: true
type: string
date:
required: false
default: ''
type: string
secrets:
CROSSBOW_GITHUB_TOKEN:
required: true
jobs:
nightly-submit:
name: Submit nightly ${{ inputs.report_type }} builds
runs-on: ubuntu-latest
steps:
- name: Checkout Arrow
shell: bash
run: git clone https://github.com/apache/arrow
- name: Checkout Crossbow
shell: bash
run: git clone https://github.com/ursacomputing/crossbow
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install Archery
shell: bash
run: pip install -e arrow/dev/archery[crossbow]
- name: Get Date
id: date
shell: bash
env:
DATE: ${{ inputs.date }}
run: |
if [ -z $DATE ]; then
DATE=$(date -I)
fi
echo "::set-output name=date::$DATE"
- name: Submit Nightlies
shell: bash
env:
CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN }}
run: archery crossbow submit --job-prefix nightly-${{ inputs.report_type }}-${{ steps.date.outputs.date }} --group nightly-${{ inputs.report_type }}