openllm

Форк
0
59 строк · 2.6 Кб
1
name: Cron update
2
on:
3
  workflow_dispatch:
4
  schedule:
5
    #        ┌───────────── minute (0 - 59)
6
    #        │  ┌───────────── hour (0 - 23)
7
    #        │  │ ┌───────────── day of the month (1 - 31)
8
    #        │  │ │ ┌───────────── month (1 - 12 or JAN-DEC)
9
    #        │  │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
10
    #        │  │ │ │ │
11
    - cron: '42 2 * * SUN-WED'
12
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#defaultsrun
13
defaults:
14
  run:
15
    shell: bash --noprofile --norc -exo pipefail {0}
16
concurrency:
17
  group: cron-${{ github.head_ref || github.run_id }}
18
  cancel-in-progress: true
19
jobs:
20
  update-actions:
21
    runs-on: 'ubuntu-latest'
22
    name: Ratchet update
23
    if: "github.repository == 'bentoml/OpenLLM'" # Don't run on fork repository
24
    env:
25
      ACTIONS_TOKEN: ${{ secrets.OPENLLM_PAT }}
26
    steps:
27
      - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4.1.1
28
        with:
29
          fetch-depth: 0
30
      - name: Install jq and curl
31
        run: sudo apt-get install -y jq curl
32
      - name: Import bot's GPG key for signing commits
33
        id: import-gpg-key
34
        uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # ratchet:crazy-max/ghaction-import-gpg@v6
35
        with:
36
          gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
37
          passphrase: ${{ secrets.GPG_PASSPHRASE }}
38
          git_config_global: true
39
          git_user_signingkey: true
40
          git_commit_gpgsign: true
41
      - name: Locking dependencies
42
        run: bash ./tools/update-actions.sh
43
      - name: Create a PR
44
        uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # ratchet:peter-evans/create-pull-request@v5.0.2
45
        env:
46
          GIT_AUTHOR_NAME: ${{ steps.import-gpg-key.outputs.name }}
47
          GIT_AUTHOR_EMAIL: ${{ steps.import-gpg-key.outputs.email }}
48
          GIT_COMMITTER_NAME: ${{ steps.import-gpg-key.outputs.name }}
49
          GIT_COMMITTER_EMAIL: ${{ steps.import-gpg-key.outputs.email }}
50
          BRANCH_NAME: cron/ratchet
51
        with:
52
          title: 'ci: update lock actions [generated]'
53
          commit-message: 'cron: ratchet update'
54
          branch-suffix: timestamp
55
          signoff: true
56
          delete-branch: true
57
          reviewers: aarnphm
58
          author: ${{ env.GIT_AUTHOR_NAME }} <${{ env.GIT_AUTHOR_EMAIL }}>
59
          branch: ${{ env.BRANCH_NAME }}
60

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.