mirror of
https://github.com/qmk/.github.git
synced 2026-09-07 16:00:17 +02:00
Add preparation command, update versions of workflows. (#5)
This commit is contained in:
@@ -13,6 +13,11 @@ on:
|
|||||||
default: "master"
|
default: "master"
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
preparation_command:
|
||||||
|
description: "command to execute before `qmk userspace-compile`"
|
||||||
|
default: ""
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -25,19 +30,19 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Userspace
|
- name: Checkout Userspace
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Check if qmk_firmware exists
|
- name: Check if qmk_firmware exists
|
||||||
id: check_files
|
id: check_files
|
||||||
uses: andstor/file-existence-action@v2
|
uses: andstor/file-existence-action@v3
|
||||||
with:
|
with:
|
||||||
files: qmk_firmware
|
files: qmk_firmware
|
||||||
|
|
||||||
- name: Checkout QMK Firmware
|
- name: Checkout QMK Firmware
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
if: steps.check_files.outputs.files_exists == 'false'
|
if: steps.check_files.outputs.files_exists == 'false'
|
||||||
with:
|
with:
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
@@ -61,6 +66,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
qmk userspace-doctor
|
qmk userspace-doctor
|
||||||
|
|
||||||
|
- name: Preparation command
|
||||||
|
if: inputs.preparation_command != ''
|
||||||
|
run: |
|
||||||
|
${{ inputs.preparation_command }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
qmk userspace-compile -e DUMP_CI_METADATA=yes || touch .failed
|
qmk userspace-compile -e DUMP_CI_METADATA=yes || touch .failed
|
||||||
@@ -72,7 +82,7 @@ jobs:
|
|||||||
[ ! -f .failed ] || exit 1
|
[ ! -f .failed ] || exit 1
|
||||||
|
|
||||||
- name: Upload binaries
|
- name: Upload binaries
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: always() && !cancelled()
|
if: always() && !cancelled()
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -21,10 +21,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Download binaries
|
- name: Download binaries
|
||||||
if: always() && !cancelled()
|
if: always() && !cancelled()
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Firmware
|
||||||
|
|
||||||
- name: Generate Release
|
- name: Generate Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v2
|
||||||
if: always() && !cancelled()
|
if: always() && !cancelled()
|
||||||
with:
|
with:
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
|
|||||||
Reference in New Issue
Block a user