Skip to content

Commit bec28cf

Browse files
committed
Update workflows form universal build
1 parent 5c7ccaf commit bec28cf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build-pipeline.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Based on https://github.com/ml-tooling/universal-build/blob/v0.6.6/workflows/build-pipeline.yml
12
name: build-pipeline
23

34
on:
@@ -9,6 +10,7 @@ on:
910
working_directory:
1011
description: "Working directory from where the build command is run"
1112
required: false
13+
# Do not auto-build on commit: push:
1214

1315
env:
1416
BUILD_ARGS: ${{ secrets.BUILD_ARGS }}
@@ -27,9 +29,10 @@ jobs:
2729
if: ${{ github.event.inputs != null && github.event.inputs.working_directory != null}}
2830
run: echo "::set-env name=WORKING_DIRECTORY::${{ github.event.inputs.working_directory }}"
2931
# new syntax: run: echo "WORKING_DIRECTORY=${{ github.event.inputs.working_directory }}" >> "$GITHUB_ENV"
30-
- uses: actions/checkout@v2
32+
# Set host ip to env variable to be uside within container actions
3133
- name: set-host-ip
3234
run: echo "::set-env name=_HOST_IP::$(hostname -I | cut -d ' ' -f 1)"
35+
- uses: actions/checkout@v2
3336
- name: run-build-scripts
3437
uses: ./.github/actions/build-environment
3538
with:

.github/workflows/release-pipeline.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
# Based on https://github.com/ml-tooling/universal-build/blob/v0.6.6/workflows/build-pipeline.yml
12
name: release-pipeline
23

34
on:
45
workflow_dispatch:
56
inputs:
67
version:
7-
description: "Version of this release."
8+
description: "Version of this release"
89
required: true
910
milestone:
1011
types: [closed]

0 commit comments

Comments
 (0)