Blog: Automatic Audit Logging with PostgreSQL Triggers (#351) #34
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: GitHub Blog Drafts Rebaser | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
autoupdate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: | | |
USER_EMAIL="${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com" | |
git config --global user.email "${USER_EMAIL}" | |
USER_NAME="$(gh api "/users/${GITHUB_ACTOR}" | jq .name -r)" | |
git config --global user.name "${USER_NAME}" | |
git checkout "emmercm/blog-drafts" | |
git merge --no-edit origin/master | |
git push | |
env: | |
GH_TOKEN: ${{ github.token }} |