Skip to content

Update description for database trigger boilerplate function #242

Update description for database trigger boilerplate function

Update description for database trigger boilerplate function #242

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