update new version available toast for desktop #3
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: Latest Dev Commit | |
on: | |
push: | |
branches: | |
- development | |
jobs: | |
update-hash: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Get latest commit hash | |
id: vars | |
run: echo "::set-output name=commit_hash::$(git rev-parse HEAD)" | |
- name: Update latest_dev_commit.txt | |
run: echo "${{ steps.vars.outputs.commit_hash }}" > ./public/latest_dev_commit.txt | |
- name: Commit and push | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add ./public/latest_dev_commit.txt | |
git commit -m "Update latest_dev_commit.txt with latest commit hash" | |
git push |