Skip to content

Create a PR from actions (default GH token) #1

Create a PR from actions (default GH token)

Create a PR from actions (default GH token) #1

name: Create a PR from actions (default GH token)
on:
workflow_dispatch:
permissions:
pull-requests: write
contents: write
jobs:
main_job:
runs-on: ubuntu-latest
steps:
- name: Checkout the source
uses: actions/checkout@v4
with:
token: ${{ github.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: ${{ github.token }}
committer: CICD team <[email protected]>
author: CICD team <[email protected]>
path: repo
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