Create a PR from actions #2
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: Create a PR from actions | |
on: | |
workflow_dispatch: | |
jobs: | |
main_job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate a token | |
id: gen_token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ secrets.PR_APP_ID }} | |
private-key: ${{ secrets.PR_APP_KEY }} | |
- name: Checkout the source | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.gen_token.token }} | |
path: repo | |
- name: Update some files | |
id: add-content | |
run: | | |
date >> ./repo/current_time.txt | |
#copied from substrate-connect | |
- uses: peter-evans/create-pull-request@v6 | |
id: create-pr | |
with: | |
token: ${{ steps.gen_token.token }} | |
committer: CICD team <[email protected]> | |
author: CICD team <[email protected]> | |
path: repo | |
branch: automatic-checkpoints-update | |
base: main | |
title: "chore: update checkpoints in chain specifications" | |
body: > | |
This pull request has been automatically generated by downloading chain | |
specifications from various JSON-RPC endpoints and extracting their checkpoints. | |
Keep in mind that introducing a malicious checkpoint can redirect users to the wrong | |
chain. If this pull request looks suspicious, please be cautious. | |
labels: "automerge" | |
commit-message: "chore: update checkpoints in chain specifications" | |
delete-branch: true |