Skip to content

Commit 0b48cd9

Browse files
authored
Allow releasing with not all spec items covered (#126)
The release workflow has been adapted to allow a release to be created and published even if not all requirements are covered (yet), according to OpenFastTrace.
1 parent 3d5f6a0 commit 0b48cd9

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

.github/workflows/release.yaml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,27 @@ jobs:
3737
uses: eclipse-uprotocol/ci-cd/.github/workflows/rust-coverage.yaml@main
3838

3939
current-spec-compliance:
40-
uses: eclipse-uprotocol/ci-cd/.github/workflows/requirements-tracing.yaml@main
41-
with:
42-
env-file-suffix: "oft-current"
40+
runs-on: ubuntu-latest
41+
# we do not invoke the corresponding job from ci-cd repo
42+
# because we do not want the job to fail if not all requirements
43+
# are covered (yet)
44+
steps:
45+
- uses: actions/checkout@v4
46+
with:
47+
submodules: "recursive"
48+
- name: "Determine OpenFastTrace file patterns from .env file"
49+
uses: xom9ikk/[email protected]
50+
with:
51+
mode: "oft-current"
52+
load-mode: strict
53+
# this will run OFT and upload the results
54+
- name: Run OpenFastTrace
55+
id: run-oft
56+
uses: eclipse-uprotocol/ci-cd/.github/actions/run-oft@main
57+
with:
58+
file-patterns: "${{ env.OFT_FILE_PATTERNS }}"
59+
tags: "${{ env.OFT_TAGS_}}"
60+
4361

4462
tag_release_artifacts:
4563
# This only runs if this workflow is initiated via a tag-push with pattern 'v*'
@@ -57,6 +75,12 @@ jobs:
5775
with:
5876
submodules: "recursive"
5977

78+
- name: "Determine uProtocol Specification file patterns from .env file"
79+
uses: xom9ikk/[email protected]
80+
with:
81+
mode: "oft-current"
82+
load-mode: strict
83+
6084
# Requirements Tracing report - we later need the download_url output of the upload step
6185
- name: Download requirements tracing report
6286
uses: actions/download-artifact@v4
@@ -114,15 +138,15 @@ jobs:
114138
- name: Gather uProtocol Specification documents
115139
shell: bash
116140
run: |
117-
tar cvz --file up-spec.tar.gz ${{ vars.UP_SPEC_OPEN_FAST_TRACE_FILE_PATTERNS }}
141+
tar cvz --file up-spec.tar.gz ${{ env.UP_SPEC_FILE_PATTERNS }}
118142
- name: Upload relevant uProtocol Spec files to release
119143
uses: svenstaro/upload-release-action@v2
120144
id: upload_up_spec
121145
with:
122146
repo_token: ${{ secrets.GITHUB_TOKEN }}
123147
file: up-spec.tar.gz
124148
tag: ${{ github.ref }}
125-
149+
126150
- name: Gets latest created release info
127151
id: latest_release_info
128152
uses: joutvhu/get-release@v1

0 commit comments

Comments
 (0)