Bump stefanzweifel/git-auto-commit-action from 4.16.0 to 5.0.0 #209
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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
security_hardening: | |
name: Check security hardening | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Ensure SHA pinned actions | |
uses: ./ | |
build_test: | |
name: Build & Test | |
needs: security_hardening | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
with: | |
ref: ${{ github.head_ref }} # https://github.com/stefanzweifel/git-auto-commit-action#checkout-the-correct-branch | |
- name: Get runs.using version | |
id: get-runs-using-version | |
uses: zgosalvez/github-actions-get-action-runs-using-version@63efe948953617d47dad79e8c7cf05964eb7a9ba | |
- name: Set up Node | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d | |
with: | |
node-version: v${{ steps.get-runs-using-version.outputs.version }} | |
- name: Cache Node Packages | |
id: node-cache | |
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 | |
with: | |
path: ~/.npm | |
key: node-cache-${{ steps.get-runs-using-version.outputs.prop }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
node-cache-${{ steps.get-runs-using-version.outputs.prop }}- | |
node-cache- | |
- name: Get Node packages | |
run: npm ci | |
- name: Run linter tool | |
run: npm run lint | |
- name: Test | |
run: npm run test | |
- name: Prepare | |
run: npm run prepare | |
- uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d | |
with: | |
commit_message: Apply `npm run prepare` changes |