This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Version File | |
on: [push] | |
jobs: | |
create-version-file: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Create v.txt with commit hash | |
run: | | |
echo "${{ github.sha }}" > v.txt | |
- name: Commit and push v.txt | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add v.txt | |
git commit -m "Add v.txt with commit hash" || exit 0 | |
git push |