Skip to content

Commit

Permalink
CI commit log
Browse files Browse the repository at this point in the history
  • Loading branch information
Exzap committed Aug 7, 2024
1 parent cec276d commit 78f73be
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/deploy_experimental_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,26 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Get commit messages since last release
id: get_commits
uses: actions/github-script@v6
with:
script: |
const { data: latestRelease } = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo,
});
const { data: commits } = await github.rest.repos.listCommits({
owner: context.repo.owner,
repo: context.repo.repo,
since: latestRelease.published_at,
});
const commitMessages = commits.map(commit => `- ${commit.commit.message}`).join('\n');
return commitMessages;
result-encoding: string

- uses: actions/download-artifact@v4
with:
name: cemu-bin-linux-x64
Expand Down Expand Up @@ -82,4 +102,4 @@ jobs:
wget -O ghr.tar.gz https://github.com/tcnksm/ghr/releases/download/v0.15.0/ghr_v0.15.0_linux_amd64.tar.gz
tar xvzf ghr.tar.gz; rm ghr.tar.gz
echo "[INFO] Release tag: v${{ env.CEMU_VERSION }}"
ghr_v0.15.0_linux_amd64/ghr -prerelease -t ${{ secrets.GITHUB_TOKEN }} -n "Cemu ${{ env.CEMU_VERSION }} (Experimental)" -b "Cemu experimental release" "v${{ env.CEMU_VERSION }}" ./upload
ghr_v0.15.0_linux_amd64/ghr -prerelease -t ${{ secrets.GITHUB_TOKEN }} -n "Cemu ${{ env.CEMU_VERSION }} (Experimental)" -b "Cemu experimental release\n\nCommit messages since last release:\n${{ steps.get_commits.outputs.result }}" "v${{ env.CEMU_VERSION }}" ./upload

0 comments on commit 78f73be

Please sign in to comment.