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 6d0e0a5
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,39 +89,31 @@ jobs:
- name: "Remove decrypted keys.asc"
run: "rm ${{ env.GPG_KEYS }}"

- name: "Determine release tag"
- name: "Determine 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 6d0e0a5

Please sign in to comment.