Skip to content

remove the extraneous print statements #4

remove the extraneous print statements

remove the extraneous print statements #4

Workflow file for this run

# SPDX-FileCopyrightText: 2017 Fermi Research Alliance, LLC
# SPDX-License-Identifier: Apache-2.0
---
name: Build DecisionEngine Modules RPM
on:
pull_request:
push:
workflow_dispatch:
inputs:
ref:
description: "branch ref"
required: true
default: "master"
jobs:
rpmbuild_el7:
if: ${{ github.ref == 'refs/heads/1.7' }}
name: Build an EL7 rpm
runs-on: ubuntu-latest
steps:
- name: make date tag
id: mkdatetag
run: echo "::set-output name=dtag::$(date +%Y%m%d_%H%M%S)"
- name: make ref tag case 1
id: mkreftag1
if: ${{ github.event.inputs.ref != '' }}
run: echo "::set-output name=reftag::${{github.event.inputs.ref}}"
- name: make ref tag case 2
id: mkreftag2
if: ${{ github.event.inputs.ref == '' }}
run: echo "::set-output name=reftag::${GITHUB_BASE_REF:+PR}"$(awk -F"/" '{print $3}' <<< ${GITHUB_REF})
- name: Checkout code tree
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{github.event.inputs.ref}}
- name: Run the build in a container (SL7/HEPCloud-CI)
uses: ./.github/actions/python-command-in-sl7-container
with:
python-command: "setup.py bdist_rpm"
logfile: "rpmbuild.log"
- name: Archive rpm
uses: actions/upload-artifact@v2
with:
name: rpms-DEM-EL7-${{steps.mkreftag1.outputs.reftag}}${{steps.mkreftag2.outputs.reftag}}-${{steps.mkdatetag.outputs.dtag}}
path: dist/*.rpm
if-no-files-found: error
rpmbuild_el8:
if: ${{ false }} # temporary disable this job
name: Build an EL8 rpm
runs-on: ubuntu-latest
steps:
- name: make date tag
id: mkdatetag
run: echo "::set-output name=dtag::$(date +%Y%m%d_%H%M%S)"
- name: make ref tag case 1
id: mkreftag1
if: ${{ github.event.inputs.ref != '' }}
run: echo "::set-output name=reftag::${{github.event.inputs.ref}}"
- name: make ref tag case 2
id: mkreftag2
if: ${{ github.event.inputs.ref == '' }}
run: echo "::set-output name=reftag::${GITHUB_BASE_REF:+PR}"$(awk -F"/" '{print $3}' <<< ${GITHUB_REF})
- name: Checkout code tree
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{github.event.inputs.ref}}
- name: Run the build in a container (EL8/HEPCloud-CI)
uses: ./.github/actions/python-command-in-el8-container
with:
python-command: "setup.py bdist_rpm"
logfile: "rpmbuild.log"
- name: Archive rpm
uses: actions/upload-artifact@v2
with:
name: rpms-DEM-EL8-${{steps.mkreftag1.outputs.reftag}}${{steps.mkreftag2.outputs.reftag}}-${{steps.mkdatetag.outputs.dtag}}
path: dist/*.rpm
if-no-files-found: error