Skip to content

Update .github/workflows/update-jquery-validate.yml #6

Update .github/workflows/update-jquery-validate.yml

Update .github/workflows/update-jquery-validate.yml #6

name: Update jquery-validation
on:
schedule:
- cron: '0 0 1 * *' # Run on the first day of the month
workflow_dispatch: # Allow manual runs
permissions:
contents: write
issues: write
pull-requests: write
jobs:
update-jquery-validate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Set RepoRoot
run: echo "RepoRoot=$(pwd)" >> $GITHUB_ENV
- name: Update dependencies
working-directory: ${{ env.RepoRoot }}/src/Mvc/build
run: |
npm install --no-lockfile
npm run build
echo "JQUERY_VALIDATE_VERSION=$(npm ls jquery-validation --json | jq -r '.dependencies["jquery-validation"].version')" >> $GITHUB_ENV
- name: Create Pull Request
uses: dotnet/actions-create-pull-request@v4
with:

Check failure on line 38 in .github/workflows/update-jquery-validate.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-jquery-validate.yml

Invalid workflow file

You have an error in your yaml syntax on line 38
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update jquery.validate to ${{ env.JQUERY_VALIDATE_VERSION }}
title: [Templates][Identity] Update jquery-validation to ${{ env.JQUERY_VALIDATE_VERSION }}
body: |
Updates the jquery-validation scripts to ${{ env.JQUERY_VALIDATE_VERSION }}
# The branch name is based on the date in the format YYYY-MM-DD
branch: update-jquery-validate-to-${{ env.JQUERY_VALIDATE_VERSION }}
base: main
paths: |
**/jquery.validate.js
**/jquery.validate.min.js