2024-08-24 05:58:26 +08:00
|
|
|
name: 'Update default version and checksums'
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: '20'
|
|
|
|
- name: Update default version and checksums
|
|
|
|
id: update-default-version
|
2024-09-05 05:14:10 +08:00
|
|
|
run:
|
|
|
|
node dist/update-default-version/index.js
|
|
|
|
src/download/checksum/known-checksums.ts action.yml ${{
|
|
|
|
secrets.GITHUB_TOKEN }}
|
2024-08-24 05:58:26 +08:00
|
|
|
- run: npm install && npm run all
|
|
|
|
- name: Create Pull Request
|
2024-09-05 05:14:10 +08:00
|
|
|
uses: peter-evans/create-pull-request@4320041ed380b20e97d388d56a7fb4f9b8c20e79 # v7.0.0
|
2024-08-24 05:58:26 +08:00
|
|
|
with:
|
2024-09-05 05:14:10 +08:00
|
|
|
commit-message: 'chore: update checksums'
|
|
|
|
title:
|
|
|
|
'chore: update default version to ${{
|
|
|
|
steps.update-default-version.outputs.latest-version }}'
|
|
|
|
body:
|
|
|
|
'chore: update default version to ${{
|
|
|
|
steps.update-default-version.outputs.latest-version }}'
|
|
|
|
base: main
|
|
|
|
labels: 'automated-pr,default-version-update'
|
|
|
|
branch: update-default-version-pr
|
|
|
|
delete-branch: true
|