Update description for database trigger boilerplate function #242
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: 'Setup jq' | |
uses: dcarbone/install-jq-action@v2 | |
with: | |
version: '${{ inputs.version }}' | |
force: '${{ inputs.force }}' | |
- id: validate_manifest | |
run: | | |
version=$(git log -1 --format='%H') | |
jq '.version' manifest.json | |
jq --arg v "${version}" '.version = $v' manifest.json > tempManifest.json | |
mv tempManifest.json manifest.json | |
jq '.version' manifest.json | |
git pull origin ${{ github.ref }} | |
git config --global user.email "caleb.thompson@mongodb.com" | |
git config --global user.name "ActionBot" | |
git add manifest.json | |
git commit -m 'update commit hash' | |
git push origin ${{ github.ref }} |