1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- name: Update JSON Data
- on:
- workflow_dispatch:
- schedule:
- - cron: 0 0 * * *
- jobs:
- update_cpython_tags:
- runs-on: ubuntu-latest
- name: Update CPython JSON tags and trees
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
- with:
- ref: master
- - name: Setup NodeJS 16
- uses: actions/setup-node@v3
- with:
- node-version: 16
- - name: Install dependencies
- run: npm ci
- - name: Update JSON data
- run: |
- node ./.github/scripts/generate_tags.js
- node ./.github/scripts/generate_trees.js
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- - name: Update jest snapshots
- run: npm run test-ci -- -u
- env:
- FORCE_COLOR: 3
- - name: Create or update pull request
- uses: peter-evans/create-pull-request@v5
- with:
- commit-message: Update CPython JSON data
- branch: create-pull-request/cpython-json
- delete-branch: true
- title: Update CPython JSON data
- body: |
- Automated JSON data update by [update_json.yml](https://github.com/MatteoH2O1999/build-and-install-python/tree/master/.github/workflows/update_json.yml)
- assignees: ${{ github.repository_owner }}
- author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- audit_dependencies:
- runs-on: ubuntu-latest
- name: Audit dependencies
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
- with:
- ref: master
- - name: Setup NodeJS 16
- uses: actions/setup-node@v3
- with:
- node-version: 16
- - name: Install dependencies
- run: npm ci
- - name: Audit dependencies
- run: npm audit
- - name: Fix dependencies vulnerabilities
- run: npm audit fix
- - name: Create or update pull request
- uses: peter-evans/create-pull-request@v5
- with:
- commit-message: Audit dependencies
- branch: create-pull-request/audit-dependencies
- delete-branch: true
- title: Fix dependencies vulnerabilities
- body: |
- Automated dependencies fix by [update_json.yml](https://github.com/MatteoH2O1999/build-and-install-python/tree/master/.github/workflows/update_json.yml)
- assignees: ${{ github.repository_owner }}
- author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|