forked from Ellipsis-Labs/solana-verifiable-build
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.45 KB
/
generate_dockerfiles.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Generate Dockerfiles
on:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
generate-dockerfiles:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ vars.ROBO_PR_APP_ID }}
private-key: ${{ secrets.ROBO_PR_CLIENT_SECRET }}
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install dependencies with uv
run: |
uv sync --all-extras --dev
- name: Run generate_dockerfiles.py
run: uv run generate_dockerfiles.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: Update Dockerfiles
title: 'Update Dockerfiles'
body: |
This PR updates the Dockerfiles in the `docker/` directory.
Generated automatically by the Generate Dockerfiles workflow.
branch: autopr-update-dockerfiles
delete-branch: true
base: master
labels: |
automated pr
dockerfiles