Skip to content

Draft release

Draft release #561

Workflow file for this run

name: Draft release
on:
workflow_run:
workflows: ['Functional tests']
types:
- completed
env:
GOLANG_VERSION: '1.20.x'
jobs:
functional_tests:
name: Draft a Github release
runs-on: ${{ matrix.os }}
if: ${{ github.actor != 'dependabot[bot]' && github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
arch: ['amd64', 'arm64']
fail-fast: true
steps:
- name: Download artifacts from the functional tests workflow
uses: dawidd6/action-download-artifact@v3
with:
workflow: functional_tests.yml
workflow_conclusion: success
name: ${{ format('federator-{0}-{1}', runner.os, matrix.arch) }}
path: bin/
repo: ${{github.repository}}
- name: Draft a release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: ${{ format('bin/federator-{0}-{1}', runner.os, matrix.arch) }}
body: ${{ format('Built from {0}', github.sha) }}
commit: ${{ github.sha }}
draft: true
name: Latest CI Build
tag: ${{ github.sha }}
token: ${{ secrets.GITHUB_TOKEN }}