Merge branch 'copy-push-files-action-9651748296-upload-functions' int… #160
Workflow file for this run
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: Update Commit Hash | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
update_commit_hash: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update file with merge commit hash | |
run: | | |
git pull origin ${{ github.ref }} | |
git log -1 --format='%H' > latestCommit.md | |
git config --global user.email "caleb.thompson@mongodb.com" | |
git config --global user.name "ActionBot" | |
git add latestCommit.md | |
git commit -m 'update commit hash' | |
git push origin ${{ github.ref }} |