This Github action allows you to generate a package from a HW repo contents that can be sent to the EMS.
The package is generated as a ZIP file and added to the release of the github repo.
The ZIP file is named <repo-name>-<release-name>-<timestamp>-ems.zip.
For example, if the repo is named i101-psu01 and the release is named 01A, then the package is named i101-psu01-01A-202201132035-ems.zip.
exclude-patterns: File patterns to exclude from ZIP file. Patterns must be white space separated. Patterns areglobpatterns, compared with pythons'sfnmatchfunction and are compared against the whole path of each file. Comparisons are case insensitive. Absolute paths always begin with./, so the pattern must match this part as well.access-token: A personal access token that has sufficient rights to read submodule repos and to add files to a release. For example see bitwarden entryyoda fw-repo-ci.
on:
release:
types: [published]
jobs:
ems-package:
runs-on: ubuntu-latest
name: Build EMS Package
steps:
- uses: ci4rail/ems-package-action@v1
with:
exclude-patterns: |
*.FCStd
./simulation/*
access-token: ${{ secrets.HW_CI_TOKEN }}