Skip to content

Commit

Permalink
release.yml: customize: no cron, force rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
mralusw committed Mar 30, 2024
1 parent 78a40b3 commit 5048cdd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Release AppImage

on:
schedule:
- cron: '0 0 * * *'
# schedule:
# - cron: '0 0 * * *'
workflow_dispatch:

jobs:
Expand All @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion scripts/release_notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ -z "$vimlog_md" ]; then
fi

cat <<EOF
## Vim AppImage Release ${VERSION}
## Custom vim-appimage release ${VERSION}
$dl_counter<br><br>Version Information:<br>$version_info<br><br>$gha_build
<hr>
Expand Down

0 comments on commit 5048cdd

Please sign in to comment.