Skip to content

Commit

Permalink
[install] in .github/workflows/archiver.yml create version_info.dat a…
Browse files Browse the repository at this point in the history
…nd push it to the INFO branch
  • Loading branch information
valassi committed Sep 28, 2024
1 parent 5c6fa4f commit 641ab24
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/archiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: 'true'
- name: archive
- name: create_tarball
run: .github/workflows/archiver.sh
- name: release
# See https://github.com/softprops/action-gh-release
Expand All @@ -29,3 +29,22 @@ jobs:
VERSION.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: create_infodat
run: python3 .github/workflows/archiver.py TMP_version_info.dat
- name: commit_infodat
run: |
git config user.name github-actions
git config user.email github-actions@github.com
# Note: 'git checkout INFO' would fails if it found version_info.dat
git checkout INFO
mv TMP_version_info.dat version_info.dat
if [ -z "$(git status --porcelain version_info.dat)" ]; then
echo "Nothing to commit"
else
echo "Commit and push version_info.dat"
echo "Update version_info.dat" > msg.txt
echo "" >> msg.txt
git diff version_info.dat | tail --lines=+6 >> msg.txt
git commit -F msg.txt version_info.dat
git push
fi

0 comments on commit 641ab24

Please sign in to comment.