From cfda90b998406669d41082ab2254d3cdf500d33c Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Sat, 11 Jan 2020 14:29:58 +0100 Subject: [PATCH] [JENKINS-60740] - Use actions/upload-release-asset to upload changelog YAMLs to Release Drafter --- .github/workflows/changelog.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 18926fbe81..bb2fa25eb9 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -14,11 +14,24 @@ jobs: steps: # Drafts your next Release notes as Pull Requests are merged into "master" - name: Generate GitHub Release Draft + id: release-drafter uses: release-drafter/release-drafter@v5.4.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Generates a YAML changelog file using https://github.com/jenkinsci/jenkins-core-changelog-generator - name: Generate YAML changelog draft + id: jenkins-core-changelog-generator uses: jenkinsci/jenkins-core-changelog-generator@master env: GITHUB_AUTH: github-actions:${{ secrets.GITHUB_TOKEN }} + # Upload YAML to the release draft assets + - name: Upload changelog.yaml to the Release Draft + id: upload-changelog.yaml + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.release-drafter.outputs.upload_url }} + asset_path: ./changelog.yaml + asset_name: changelog.yaml + asset_content_type: text/yaml -- GitLab