Skip to content

Commit 537ae9f

Browse files
authored
Merge pull request #12 from jtakaki-matc/set-output-fix
Fix set-output GHA deprecation warnings (Software-5354)
2 parents 6e0c200 + b4f6b02 commit 537ae9f

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/build-container.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
steps:
1818
- name: make date tag
1919
id: mkdatetag
20-
run: echo "::set-output name=dtag::$(date +%Y%m%d-%H%M)"
20+
run: echo "dtag=$(date +%Y%m%d-%H%M)" >> $GITHUB_OUTPUT
2121

2222
build:
2323
runs-on: ubuntu-latest
2424
needs: [make-date-tag]
2525
if: startsWith(github.repository, 'opensciencegrid/')
2626
steps:
27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v3
2828

2929
- name: Generate tag list
3030
id: generate-tag-list
@@ -42,26 +42,26 @@ jobs:
4242
# This causes the tag_list array to be comma-separated below,
4343
# which is required for build-push-action
4444
IFS=,
45-
echo "::set-output name=taglist::${tag_list[*]}"
45+
echo "taglist=${tag_list[*]}" >> $GITHUB_OUTPUT
4646
4747
- name: Set up Docker Buildx
48-
uses: docker/setup-buildx-action@v1
48+
uses: docker/setup-buildx-action@v2.7.0
4949

5050
- name: Log in to Docker Hub
51-
uses: docker/login-action@v1
51+
uses: docker/login-action@v2.2.0
5252
with:
5353
username: ${{ secrets.DOCKER_USERNAME }}
5454
password: ${{ secrets.DOCKER_PASSWORD }}
5555

5656
- name: Log in to OSG Harbor
57-
uses: docker/login-action@v1
57+
uses: docker/login-action@v2.2.0
5858
with:
5959
registry: hub.opensciencegrid.org
6060
username: ${{ secrets.OSG_HARBOR_ROBOT_USER }}
6161
password: ${{ secrets.OSG_HARBOR_ROBOT_PASSWORD }}
6262

6363
- name: Build and push Docker images
64-
uses: docker/build-push-action@v2.2.0
64+
uses: docker/build-push-action@v4
6565
with:
6666
context: .
6767
push: true

.github/workflows/python-linters.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- id: python-files
1313
run: |
14-
echo "::set-output name=filelist::$(find . -type f -exec awk ' /^#!.*python/{print FILENAME} {nextfile}' {} + | tr '\n' ' ')"
14+
echo "filelist=:$(find . -type f -exec awk ' /^#!.*python/{print FILENAME} {nextfile}' {} + | tr '\n' ' ')" >> $GITHUB_OUTPUT
1515
1616
pylint:
1717
runs-on: ubuntu-20.04
1818
needs: [python-files]
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2121

2222
- name: Set up Python 3.6
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2424
with:
2525
python-version: 3.6.15
2626

27-
- uses: actions/cache@v2
27+
- uses: actions/cache@v3
2828
with:
2929
path: ~/pip-cache
3030
key: pip-3.6-${{ github.sha }}
@@ -46,14 +46,14 @@ jobs:
4646
runs-on: ubuntu-20.04
4747
needs: [python-files]
4848
steps:
49-
- uses: actions/checkout@v2
49+
- uses: actions/checkout@v3
5050

5151
- name: Set up Python 3.6
52-
uses: actions/setup-python@v2
52+
uses: actions/setup-python@v4
5353
with:
5454
python-version: 3.6.15
5555

56-
- uses: actions/cache@v2
56+
- uses: actions/cache@v3
5757
with:
5858
path: ~/pip-cache
5959
key: pip-3.6-${{ github.sha }}

0 commit comments

Comments
 (0)