Skip to content

Commit 7ed8881

Browse files
authored
Merge pull request #295 from cmu-delphi/ndefries/workflow-warnings
Reduce workflow warnings
2 parents 7c13d7c + 37e6911 commit 7ed8881

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
runs-on: ubuntu-20.04
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v3
1010
- uses: r-lib/actions/setup-r@v2
1111
with:
1212
use-public-rspm: true
@@ -26,11 +26,11 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Check out code
29-
uses: actions/checkout@v2
29+
uses: actions/checkout@v3
3030
- name: Pull Image Data
3131
run: make pull_data
3232
- name: Login to GitHub Container Registry
33-
uses: docker/login-action@v1
33+
uses: docker/login-action@v2
3434
with:
3535
registry: ghcr.io
3636
username: cmu-delphi-deploy-machine
@@ -48,8 +48,8 @@ jobs:
4848
if [ "$imageTag" = "main" ] ; then
4949
imageTag="latest"
5050
fi
51-
echo "::set-output name=tag::$imageTag"
52-
echo "::set-output name=repo::ghcr.io/${{ github.repository }}"
51+
echo "tag=$imageTag" >> "$GITHUB_OUTPUT"
52+
echo "repo=ghcr.io/${{ github.repository }}" >> "$GITHUB_OUTPUT"
5353
- name: Push Dev Tag
5454
run: |
5555
docker tag repo ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
@@ -64,8 +64,8 @@ jobs:
6464
id: extract_version
6565
run: |
6666
python -m pip install bump2version
67-
echo -n "::set-output name=version::"
68-
bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,
67+
currentVersion=`bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,`
68+
echo "version=$currentVersion" >> "$GITHUB_OUTPUT"
6969
- name: Trigger Webhook
7070
run: |
7171
# trigger a webhook update

.github/workflows/create_release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
id: version
2828
run: |
2929
python -m pip install bump2version
30-
echo -n "::set-output name=next_tag::"
31-
bump2version --list ${{ github.event.inputs.versionName }} | grep new_version | sed -r s,"^.*=",,
30+
newVersion=`bump2version --list ${{ github.event.inputs.versionName }} | grep new_version | sed -r s,"^.*=",,`
31+
echo "next_tag=$newVersion" >> "$GITHUB_OUTPUT"
3232
- name: Create pull request into main
33-
uses: peter-evans/create-pull-request@v3
33+
uses: peter-evans/create-pull-request@v4
3434
with:
3535
branch: release/${{ steps.version.outputs.next_tag }}
3636
commit-message: "chore: release ${{ steps.version.outputs.next_tag }}"

.github/workflows/release_main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
id: extract_version
3030
run: |
3131
python -m pip install bump2version
32-
echo -n "::set-output name=version::"
33-
bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,
32+
currentVersion=`bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,`
33+
echo "version=$currentVersion" >> "$GITHUB_OUTPUT"
3434
- name: Create Release
3535
id: create_release
3636
uses: release-drafter/release-drafter@v5

.github/workflows/s3_upload_ec2.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ jobs:
2525
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE
2626

2727
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v3
2929

3030
- name: Test AWS cli installation
3131
run: aws --version
3232

3333
- name: Configure AWS credentials
34-
uses: aws-actions/configure-aws-credentials@v1
34+
uses: aws-actions/configure-aws-credentials@v2
3535
with:
3636
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
3737
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
3838
aws-region: ${{ env.AWS_REGION_NAME }}
3939

4040
- name: Login to GitHub Container Registry
41-
uses: docker/login-action@v1
41+
uses: docker/login-action@v2
4242
with:
4343
registry: ghcr.io
4444
username: cmu-delphi-deploy-machine

0 commit comments

Comments
 (0)