Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2001 from rdimitrov/dimitrovr/spec-bump-workflow
chore: update the workflow responsible for notifying of new TUF spec release
- Loading branch information
Showing
2 changed files
with
33 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
on: | ||
schedule: | ||
- cron: "0 13 * * *" | ||
workflow_dispatch: | ||
name: Specification version check | ||
jobs: | ||
# Get the version of the TUF specification the project states it supports | ||
get-supported-tuf-version: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.get-version.outputs.version }} | ||
steps: | ||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b | ||
- uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 | ||
with: | ||
python-version: "3.x" | ||
- id: get-version | ||
run: | | ||
python3 -m pip install -u pip | ||
python3 -m pip install -e . | ||
script="from tuf.api.metadata import SPECIFICATION_VERSION; \ | ||
print(f\"v{'.'.join(SPECIFICATION_VERSION)}\")" | ||
ver=$(python3 -c "$script") | ||
echo "::set-output name=version::$ver" | ||
# Get the latest TUF specification release and open an issue (if needed) | ||
specification-bump-check: | ||
permissions: | ||
contents: read | ||
issues: write | ||
needs: get-supported-tuf-version | ||
uses: theupdateframework/specification/.github/workflows/check-latest-spec-version.yml@master | ||
with: | ||
tuf-version: ${{needs.get-supported-tuf-version.outputs.version}} |
This file was deleted.
Oops, something went wrong.