Skip to content

Commit

Permalink
Merge pull request #12 from jtakaki-matc/set-output-fix
Browse files Browse the repository at this point in the history
Fix set-output GHA deprecation warnings (Software-5354)
  • Loading branch information
brianhlin authored Nov 8, 2023
2 parents 6e0c200 + b4f6b02 commit 537ae9f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
steps:
- name: make date tag
id: mkdatetag
run: echo "::set-output name=dtag::$(date +%Y%m%d-%H%M)"
run: echo "dtag=$(date +%Y%m%d-%H%M)" >> $GITHUB_OUTPUT

build:
runs-on: ubuntu-latest
needs: [make-date-tag]
if: startsWith(github.repository, 'opensciencegrid/')
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

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

- name: Log in to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to OSG Harbor
uses: docker/login-action@v1
uses: docker/login-action@v2.2.0
with:
registry: hub.opensciencegrid.org
username: ${{ secrets.OSG_HARBOR_ROBOT_USER }}
password: ${{ secrets.OSG_HARBOR_ROBOT_PASSWORD }}

- name: Build and push Docker images
uses: docker/build-push-action@v2.2.0
uses: docker/build-push-action@v4
with:
context: .
push: true
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/python-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ jobs:
- uses: actions/checkout@v2
- id: python-files
run: |
echo "::set-output name=filelist::$(find . -type f -exec awk ' /^#!.*python/{print FILENAME} {nextfile}' {} + | tr '\n' ' ')"
echo "filelist=:$(find . -type f -exec awk ' /^#!.*python/{print FILENAME} {nextfile}' {} + | tr '\n' ' ')" >> $GITHUB_OUTPUT
pylint:
runs-on: ubuntu-20.04
needs: [python-files]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python 3.6
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.6.15

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/pip-cache
key: pip-3.6-${{ github.sha }}
Expand All @@ -46,14 +46,14 @@ jobs:
runs-on: ubuntu-20.04
needs: [python-files]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python 3.6
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.6.15

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/pip-cache
key: pip-3.6-${{ github.sha }}
Expand Down

0 comments on commit 537ae9f

Please sign in to comment.