MIJN-9578-BUG-thema-parkeren-wordt-niet-getoond-indien-persoon-alleen-vergunningen-in-mijn-parkeren-heeft #9
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: Sync Node.js versions | |
on: | |
pull_request: | |
paths: | |
- 'Dockerfile' | |
permissions: | |
contents: write | |
jobs: | |
sync-node-version: | |
runs-on: ubuntu-latest | |
if: github.actor == 'dependabot[bot]' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update .nvmrc | |
run: | | |
echo 'Current nvmrc has version:' | |
cat .nvmrc | |
echo 'Overwriting .nvmrc with version inside updated Dockerfile' | |
grep -o -P '(?<=^FROM node:)\d+.?\d*.?\d*' Dockerfile > .nvmrc | |
- name: Commit changes | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add .nvmrc | |
git commit -m "chore: sync .nvmrc with Dockerfile node version" || exit 0 | |
git push | |