Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHA: fix deprecation warnings (save-state, set-output, Nodejs12) #338

Merged
merged 14 commits into from
Jul 30, 2023
Merged
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: rustup show

- name: Cache Rust Dependecies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
run: rustup show

- name: Cache Rust Dependecies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
- uses: actions/checkout@v3

- name: Cache target dir
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: "${{ github.workspace }}/runtime/target"
key: srtool-target-${{ matrix.runtime }}-${{ github.sha }}
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
run: rustup show

- name: Cache Rust Dependecies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:
- name: Setup Rust toolchain
run: rustup show

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.rust-target }}-${{ matrix.check }}

Expand All @@ -244,7 +244,7 @@ jobs:

- name: Fail-fast; cancel other jobs
if: failure()
uses: andymckay/cancel-action@0.2
uses: andymckay/cancel-action@0.3

integration-test:
name: ${{ matrix.test }}
Expand All @@ -254,15 +254,15 @@ jobs:
matrix:
test: [ test_bootstrap_demo_community.sh, test_bot_community.sh, test_register_business.sh ]
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3

- name: download build artifacts
uses: actions/download-artifact@master
uses: actions/download-artifact@v3
with:
name: encointer-node-notee-${{ github.sha }}

- name: download build artifacts
uses: actions/download-artifact@master
uses: actions/download-artifact@v3
with:
name: encointer-client-notee-${{ github.sha }}

Expand All @@ -274,7 +274,7 @@ jobs:
mv encointer-*-notee target/release

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: install py dependencies
Expand Down Expand Up @@ -369,7 +369,7 @@ jobs:
ls
ls "${{ matrix.runtime }}-runtime-${{ github.sha }}"
runtime_ver="$(ruby -e 'require "./scripts/github/lib.rb"; puts get_runtime()')"
echo "::set-output name=runtime_ver::$runtime_ver"
echo "{runtime_ver}={$runtime_ver}" >> $GITHUB_OUTPUT
- name: Upload compact ${{ matrix.runtime }} wasm
uses: actions/upload-release-asset@v1
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/delete-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
name: Delete image from ghcr.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
run: echo "tag"="{${GITHUB_REF#refs/*/}}" >> $GITHUB_OUTPUT

- name: Check output
env:
Expand All @@ -25,7 +25,7 @@ jobs:

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
-H "Authorization: JWT ${TOKEN}"

- name: Delete tag as well
uses: dev-drprasad/[email protected].0
uses: dev-drprasad/[email protected].1
with:
delete_release: false # it is triggered by release deletion
tag_name: ${{ steps.vars.outputs.tag }} # tag name to delete
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish-docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Push to Dockerhub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Download encointer-client-notee from release
uses: dsaltares/fetch-gh-release-asset@master
Expand All @@ -29,33 +29,33 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache-node
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-

- name: Login to Dockerhub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
context: .
Expand All @@ -66,7 +66,7 @@ jobs:

- name: Build and push
id: docker_build_node
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
file: Dockerfile-node
push: true
Expand Down
Loading