Skip to content

Merge branch 'copy-push-files-action-9652066536-upload-functions' int… #169

Merge branch 'copy-push-files-action-9652066536-upload-functions' int…

Merge branch 'copy-push-files-action-9652066536-upload-functions' int… #169

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 }}