Skip to content

Commit

Permalink
Hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 21, 2022
1 parent ac40d48 commit 2c91c90
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,36 +92,28 @@ jobs:
- name: "Determine release tag"
run: "echo \"RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"

- name: "Determine release body"
- name: "Create release"
uses: "actions/github-script@v5"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
script: |
const repository = context.repo;
const tagName = "${{ env.RELEASE_TAG }}";
const response = await github.rest.repos.generateReleaseNotes({
owner: repository.owner,
repo: repository.repo,
tag_name: "${{ env.RELEASE_TAG }}",
tag_name: tagName,
})
core.exportVariable("RELEASE_BODY", response.data.body)
- name: "Create release"
uses: "actions/github-script@v5"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
script: |
const repository = context.repo
await github.rest.repos.createRelease({
body: "${{ env.RELEASE_BODY }}",
body: response.data.body,
draft: false,
name: "${{ env.RELEASE_TAG }}",
name: tagName,
owner: repository.owner,
prerelease: false,
repo: repository.repo,
tag_name: "${{ env.RELEASE_TAG }}",
tag_name: tagName,
})
- name: "Upload composer-normalize.phar"
Expand Down

0 comments on commit 2c91c90

Please sign in to comment.