Skip to content

Commit 541c358

Browse files
authored
Replace set-output by GITHUB_OUTPUT (#57)
* Replace set-output by GITHUB_OUTPUT. * Bump setup-python action version.
1 parent a30f749 commit 541c358

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/_shared-docs-build-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ jobs:
210210
}
211211
212212
- name: Set up Python
213-
uses: actions/setup-python@v3
213+
uses: actions/setup-python@v4
214214
with:
215215
python-version: ${{ inputs.python }}
216216

.github/workflows/_shared-docs-build-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
core.setOutput('skip-init', skipInit)
129129
130130
- name: Set up Python
131-
uses: actions/setup-python@v3
131+
uses: actions/setup-python@v4
132132
with:
133133
python-version: ${{ inputs.python }}
134134

.github/workflows/generate-wiki-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
repository: ${{ github.repository }}.wiki
3333
path: ${{ env.WIKI }}
3434

35-
- uses: actions/setup-python@v3
35+
- uses: actions/setup-python@v4
3636
if: fromJSON(env.SHOULD_RUN)
3737
with:
3838
python-version: '3.9'

.github/workflows/test-action-build-init.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
uses: actions/checkout@v3
6464

6565
- name: Install Python
66-
uses: actions/setup-python@v3
66+
uses: actions/setup-python@v4
6767
with:
6868
python-version: 3.9
6969

actions/ansible-docs-build-html/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ runs:
5959
echo "::group::Copy the build files"
6060
mkdir -p "$COPY_BUILD"
6161
rsync -avc --delete-after "$HTML/" "$COPY_BUILD/"
62-
echo "::set-output name=build-html::$COPY_BUILD"
62+
echo "build-html=$COPY_BUILD" >> ${GITHUB_OUTPUT}
6363
echo "::endgroup::"
6464
else
65-
echo "::set-output name=build-html::$HTML"
65+
echo "build-html=$HTML" >> ${GITHUB_OUTPUT}
6666
fi
6767
6868
- name: Upload artifact
@@ -77,7 +77,7 @@ runs:
7777
id: outs
7878
shell: bash
7979
run: |
80-
echo "::set-output name=hash::${{ hashFiles(steps.build.outputs.build-html) }}"
80+
echo "hash=${{ hashFiles(steps.build.outputs.build-html) }}" >> ${GITHUB_OUTPUT}
8181
if [[ "${{ inputs.artifact-upload }}" == "true" ]] ; then
82-
echo "::set-output name=artifact-url::https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
82+
echo "artifact-url=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> ${GITHUB_OUTPUT}
8383
fi

actions/ansible-docs-build-init/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,5 @@ runs:
123123
pip install -r "${{ inputs.dest-dir }}/requirements.txt"
124124
echo "::endgroup::"
125125
126-
echo "::set-output name=build-script::${{ inputs.dest-dir }}/build.sh"
127-
echo "::set-output name=build-html::${{ inputs.dest-dir }}/build/html"
126+
echo "build-script=${{ inputs.dest-dir }}/build.sh" >> ${GITHUB_OUTPUT}
127+
echo "build-html=${{ inputs.dest-dir }}/build/html" >> ${GITHUB_OUTPUT}

0 commit comments

Comments
 (0)