From 5048cdd95ca66f09d4103b7e2d2a81885bfb46af Mon Sep 17 00:00:00 2001 From: Alin Mr Date: Sun, 31 Mar 2024 01:53:47 +0200 Subject: [PATCH] release.yml: customize: no cron, force rebuild --- .github/workflows/release.yml | 20 ++++++++++++-------- scripts/release_notes.sh | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abb89f45..d7a66b09 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,8 @@ name: Release AppImage on: - schedule: - - cron: '0 0 * * *' +# schedule: +# - cron: '0 0 * * *' workflow_dispatch: jobs: @@ -27,7 +27,7 @@ jobs: query: | query($owner:String!,$repo:String!) { appimage: repository(owner:$owner, name:$repo) { - refs(refPrefix:"refs/tags/", last:1) { + refs(refPrefix:"refs/tags/v", last:1) { edges { node { name @@ -135,23 +135,27 @@ jobs: id: commit run: | tag_name=$(git -C vim describe --tags --abbrev=0) - echo "tag_name=${tag_name}" >> "$GITHUB_OUTPUT" + ktag_name=kstr0k-ubuntu22.04-${tag_name} + echo "tag_name=${tag_name}" >> "$GITHUB_OUTPUT" + echo "ktag_name=${ktag_name}" >> "$GITHUB_OUTPUT" vim_summary=$(git submodule summary vim) workflow_url=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} git config --local user.name "github-actions[bot]" git config --local user.email "github-actions[bot]@users.noreply.github.com" git remote set-url origin "https://github-actions:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}" - git commit -m "Vim: ${tag_name}" -m "${vim_summary}" -m "${workflow_url}" vim - git tag -f "${tag_name}" -m "Vim: ${tag_name}" + if git commit -m "Vim: ${tag_name}" -m "${vim_summary}" -m "${workflow_url}" vim; then + git tag -f "${tag_name}" -m "Vim: ${tag_name}" + fi + git tag -f "${ktag_name}" -m "custom vim-appimage: ${ktag_name}" git push --follow-tags -u origin "${GITHUB_REF_NAME}" - name: Release uses: softprops/action-gh-release@v2 with: body_path: release.body - name: 'Vim: ${{ steps.commit.outputs.tag_name }}' - tag_name: ${{ steps.commit.outputs.tag_name }} + name: 'custom vim-appimage: ${{ steps.commit.outputs.ktag_name }}' + tag_name: ${{ steps.commit.outputs.ktag_name }} files: | *.AppImage *.zsync diff --git a/scripts/release_notes.sh b/scripts/release_notes.sh index 3bcaaaa6..5063d1c8 100755 --- a/scripts/release_notes.sh +++ b/scripts/release_notes.sh @@ -15,7 +15,7 @@ if [ -z "$vimlog_md" ]; then fi cat <
Version Information:
$version_info

$gha_build