Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.47 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.47 KB

Dependascarbabot

Bump dependencies in Cairo repositories.

Usage

You will need to create a personal access token to let the GHA create a PR: How to create a PAT token

PAT Token required scope:

alt text

In your .github/workflows folder, add the following .yml file:

Note: You can choose a mix of schedule, push and manual trigger to execute the GHA

name: Dependascarbabot
on:
  schedule:
    - cron: "0 3 * * 1"
  
  push:
    branches:
      - 'main'

  workflow_dispatch:

jobs:
  dependascarbabot:
    runs-on: ubuntu-latest
    steps:
      - uses: cwastche/dependascarbabot@v1
        with:
          github-token: ${{ secrets.<TOKEN NAME> }}

If a '.tool-versions' file specifies the scarb version, that version will be used when calling 'scarb update' in the GHA, otherwise the latest stable version will be used.

Helpful links:

POSIX cron syntax

Setting up schedule

Setting up push

How to manually trigger the GHA