Skip to content

Draft release

Draft release #637

Workflow file for this run

name: Draft release
on:
workflow_run:
workflows: ['Functional tests']
types:
- completed
env:
GOLANG_VERSION: '1.23'
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@v6
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 }}