Skip to content

docs(README): Ajout d'une marche à suivre pour maintenir le repo à jour #91

docs(README): Ajout d'une marche à suivre pour maintenir le repo à jour

docs(README): Ajout d'une marche à suivre pour maintenir le repo à jour #91

Workflow file for this run

name: Dependabot post-update
on:
pull_request_target:
types: [opened, synchronize, reopened]
branches: develop
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
post-update:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout out pull request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr checkout ${{ github.event.pull_request.number }}
- uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'npm'
- run: npm install --frozen-lockfile
- run: npm ci && npm run prepare
- name: Commit and push if needed
run: |
git add .
if [ -z "$(git status --porcelain)" ]; then
echo "💾 no changes to dist/index.js"
exit 0
fi
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Apply dist/index.js changes"
git push
echo "💾 pushed dist/index.js changes"