Skip to content

Commit d3f836b

Browse files
authored
Remove set-output calls (#1279)
* remove set-output calls * fix doc cache
1 parent abf0285 commit d3f836b

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,11 @@ jobs:
3030
- name: Install tox
3131
run: pip install tox
3232

33-
- name: Set spec commit
34-
id: set_commit
35-
run: |
36-
content=`cat .apigentools-info`
37-
content="${content//'%'/'%25'}"
38-
content="${content//$'\n'/'%0A'}"
39-
content="${content//$'\r'/'%0D'}"
40-
echo "::set-output name=spec_json::$content"
41-
4233
- name: Cache sphinx
4334
uses: actions/cache@v3
4435
with:
4536
path: docs/.sphinx
46-
key: sphinx-${{ fromJson(steps.set_commit.outputs.spec_json).spec_versions.v2.spec_repo_commit }}
37+
key: sphinx-${{ hashFiles('.generator/schemas/**/openapi.yaml') }}
4738
restore-keys: sphinx-
4839

4940
- name: Build documentation

.github/workflows/prepare_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
if [ "${VERSION}" = "" ] ; then
3030
LATEST_TAG=$(git describe --tags --abbrev=0)
3131
NEXT_TAG=$(echo ${LATEST_TAG} | awk '{split($0, a, "."); print a[1] "." a[2] + 1 "." a[3]}')
32-
echo ::set-output name=version::$NEXT_TAG
32+
echo "version=$NEXT_TAG" >> $GITHUB_OUTPUT
3333
else
34-
echo ::set-output name=version::$VERSION
34+
echo "version=$VERSION" >> $GITHUB_OUTPUT
3535
fi
3636
env:
3737
VERSION: ${{ github.event.inputs.version }}

0 commit comments

Comments
 (0)