forked from pyodide/pyodide
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.64 KB
/
update_cross_build_releases.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: Update cross-build metadata file
on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: "Version number"
required: true
jobs:
update_cross_build_releases:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install pyodide-build
run: |
python -m pip install --upgrade pip
pip install ./pyodide-build
- name: Get version number (release)
if: github.event_name == 'release'
run: |
echo "VERSION=${{ github.event.release.name }}" >> $GITHUB_ENV
- name: Get version number (workflow_dispatch)
if: github.event_name == 'workflow_dispatch'
run: |
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
- name: Update cross-build metadata file
working-directory: tools
run: |
python update_cross_build_releases.py "${{ env.VERSION }}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update cross-build metadata file for version ${{ env.VERSION }}
title: Update cross-build metadata file for version ${{ env.VERSION }}
body: |
This PR updates the cross-build metadata file.
branch: update-cross-build-metadata-${{ env.VERSION }}
base: main
branch-suffix: timestamp
draft: true
add-paths: |
pyodide-cross-build-environments.json