Update iframe.html #8
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 changes and trigger another workflow | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add v.txt | |
git commit -m "v" || exit 0 | |
git push | |
curl \ | |
-X POST \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
-H "Authorization: token ${{ secrets.ACCESS_TOKEN }}" \ | |
https://api.github.com/repos/roblnet13/pvz/actions/workflows/static.yml/dispatches \ | |
-d '{"ref":"main"}' |