Skip to content

Merge pull request #123 from DFTBA-Shalom/main #30

Merge pull request #123 from DFTBA-Shalom/main

Merge pull request #123 from DFTBA-Shalom/main #30

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Auto Update Common Sections
on:
push:
paths:
- "update-action/**"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Run update
shell: bash
run: cd ./update-action/ && node .
- name: Setup git config
shell: bash
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit updated featured action
shell: bash
run: |
git add .
git commit -m "chore: update common sections"
git push