From 201de70b1ca504bc8422880dae65c0cbfcf71028 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 3 Nov 2022 13:34:57 +0000 Subject: [PATCH 1/2] ci: update release workflow for recent GHA changes GitHub Actions are deprecating the set-output workflow command in favour of environmental files. Update the release workflow to use the new mechanism for saving output from a step. https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ Fixes: #259 Signed-off-by: Joshua Lock --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d8a946..fbb5c15 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,13 +24,13 @@ jobs: id: prevver run: | prev_version=`git tag | sort -V -r | head -n 1 | cut -c 2-` - echo "::set-output name=prev_version::$(echo -n $prev_version)" + echo "prev_version=$prev_version" >> $GITHUB_OUTPUT - name: Get version id: getver run: | spec_version=`grep -oP 'VERSION \K(\d+\.\d+\.\d+)' tuf-spec.md` - echo "::set-output name=spec_version::$(echo -n $spec_version)" + echo "spec_version=$spec_version" >> $GITHUB_OUTPUT - name: Make release if: steps.getver.outputs.spec_version != steps.prevver.outputs.prev_version From 9379f6ef0db9bfb165e464cc1c504d83c3092337 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 3 Nov 2022 14:17:46 +0000 Subject: [PATCH 2/2] ci: pin python-version we use to generate the published spec Some dependencies we need do not yet have wheels available for Python 3.11 which is installed by the '3.x' version selector. Signed-off-by: Joshua Lock --- .github/workflows/draft.yml | 2 +- .github/workflows/pr.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/draft.yml b/.github/workflows/draft.yml index 74ae1bb..9623906 100644 --- a/.github/workflows/draft.yml +++ b/.github/workflows/draft.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Python uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 with: - python-version: 3.x + python-version: '3.10' cache: pip - name: Clone diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4b22001..8f4ac53 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Python uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 with: - python-version: 3.x + python-version: '3.10' cache: pip - name: Ensure changes build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fbb5c15..578421c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Python uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 with: - python-version: 3.x + python-version: '3.10' cache: 'pip' - name: Get previous version