Skip to content

Commit

Permalink
Update schedule.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vitodb authored Jan 7, 2022
1 parent f553a05 commit 9d7b41a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/schedule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
#schedule:
# # * is a special character in YAML so you have to quote this string
# - cron: '45 21 * * *'

push:
branches: [ master ]

workflow_dispatch:
inputs:
Expand Down Expand Up @@ -42,3 +45,24 @@ jobs:
name: rpms-DEM-${{github.event.inputs.branch}}-${{github.event.inputs.timestamp}}
path: dist/*.rpm
if-no-files-found: error

- name: print Name Variables
run: |
echo "ref: ${GITHUB_REF}"
echo "ref: ${GITHUB_REF##*/}-draft"
echo "upload_url ${{ steps.create_release.outputs.upload_url }}"
pwd
ls dist
- name: Upload RPMs
run: |
set -x
hub release delete "${GITHUB_REF##*/}-draft" || :
assets=()
for asset in ./dist/*.rpm; do
assets+=("-a" "$asset")
done
hub release create -p "${assets[@]}" -m "${GITHUB_REF##*/}-draft" "${GITHUB_REF##*/}-draft"
echo "hub release exit status: ${?}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9d7b41a

Please sign in to comment.