Skip to content

Combine

Combine #15

Workflow file for this run

on:
push:
paths:
- config/west.yml
- config/*.keymap
- config/*.conf
- config/includes/*.dtsi
- config/boards/**
- boards/**
- build.yaml
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
name-params:
runs-on: ubuntu-latest
steps:
- name: prepare archive name parameters
id: set-date
shell: bash
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: set sha slice
id: set-sha
shell: bash
run: echo "SHA_SLICE=$(echo '${{ github.sha }}' | cut -c 1-6)" >> $GITHUB_OUTPUT
- name: output current date
shell: bash
run: echo ${{ steps.set-date.outputs.CURRENT_DATE }}
outputs:
CURRENT_DATE: ${{ steps.set-date.outputs.CURRENT_DATE }}
SHA_SLICE: ${{ steps.set-sha.outputs.SHA_SLICE }}
build:
needs: name-params
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@2adaa00d1092e41ce11dfae46ce7d2a5bad97ead
with:
archive_name: zmk-senz-${{ needs.name-params.outputs.CURRENT_DATE }}-${{ needs.name-params.outputs.SHA_SLICE }}-${{ github.run_number }}