Skip to content

Commit ddd4864

Browse files
bwittffalor
andauthored
Remove deprecated set-output (#111)
* remove deprecated set-output * Use correct workflow file name --------- Co-authored-by: Frank Falor <[email protected]>
1 parent bbda1a0 commit ddd4864

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/acceptance-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
paths:
1919
- 'lib/**'
2020
- 'manifests/**'
21-
- '.github/workflows/pr_acceptance_test.yml'
21+
- '.github/workflows/acceptance_test.yml'
2222

2323
concurrency:
2424
group: ${{ github.ref }}
@@ -48,8 +48,8 @@ jobs:
4848
REF: ${{github.event.pull_request.head.sha}}
4949
REPOSITORY: ${{github.event.pull_request.head.repo.full_name}}
5050
run: |
51-
echo ::set-output name=ref::${REF}
52-
echo ::set-output name=repository::${REPOSITORY}
51+
echo "ref=${REF}" >> $GITHUB_OUTPUT
52+
echo "repository=${REPOSITORY}" >> $GITHUB_OUTPUT
5353
- name: Print git vars
5454
run: |
5555
echo ${{ steps.git-vars.outputs.ref}}
@@ -103,7 +103,7 @@ jobs:
103103
uses: actions/cache@v4
104104
with:
105105
path: ~/.vagrant.d/boxes
106-
key: ${{ runner.os }}-vagrant-${{ hashFiles('./.github/workflows/pr_acceptance_test.yml') }}
106+
key: ${{ runner.os }}-vagrant-${{ hashFiles('./.github/workflows/acceptance_test.yml') }}
107107
restore-keys: |
108108
${{ runner.os }}-vagrant-
109109
- name: Activate Ruby 2.7

.github/workflows/files/generate_matrix.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,6 @@ def matrix_os(provisioner):
9191
print(
9292
f"::error ::Empy collection list. Check the provision.yaml file. {args.path} or pass in valid puppet collections with -c")
9393

94-
print("::set-output name=matrix::" + json.dumps(matrix))
94+
import os
95+
with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
96+
f.write(f"matrix={json.dumps(matrix)}\n")

0 commit comments

Comments
 (0)