Skip to content

Commit

Permalink
ci: [DOPS-661] updates to latest gh actions except action/labeler and…
Browse files Browse the repository at this point in the history
… peter-evans/create-pull-request
  • Loading branch information
chilcano committed Feb 6, 2024
1 parent 929ab7a commit 104e381
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
working-directory: ${{env.working-directory}}
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 16
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/mythx-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ jobs:
outputs:
group_id: ${{ steps.comment_prepare.outputs.group_id }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: refs/pull/${{ inputs.pr_number }}/merge
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 16
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
- name: Install mythx-cli
run: pip install mythx-cli
- name: Changed Files Exporter
id: files
uses: umani/changed-files@v3.3.0
uses: umani/changed-files@v4.1.0
with:
repo-token: ${{ github.token }}
pr-number: ${{ inputs.pr_number }}
Expand All @@ -78,7 +78,7 @@ jobs:
steps:
- name: Comment a pull_request
if: ${{ inputs.pr_number != '' }}
uses: thollander/actions-comment-pull-request@v1
uses: thollander/actions-comment-pull-request@v2
with:
pr_number: ${{ inputs.pr_number }}
message: 'Scan started in group [https://dashboard.mythx.io/#/console/analyses/groups/${{ needs.mythx.outputs.group_id }}](https://dashboard.mythx.io/#/console/analyses/groups/${{ needs.mythx.outputs.group_id }})'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/mythx-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ jobs:
outputs:
group_id: ${{ steps.comment_prepare.outputs.group_id }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: ${{ inputs.pr_number != '' }}
with:
ref: refs/pull/${{ inputs.pr_number }}/merge
fetch-depth: 0
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: ${{ inputs.pr_number == '' }}
with:
fetch-depth: 0
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 16
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
- name: Install mythx-cli
run: pip install mythx-cli
- name: Install deps
Expand All @@ -72,7 +72,7 @@ jobs:
steps:
- name: Comment a pull_request
if: ${{ inputs.pr_number != '' }}
uses: thollander/actions-comment-pull-request@v1
uses: thollander/actions-comment-pull-request@v2
with:
pr_number: ${{ inputs.pr_number }}
message: 'Scan started in group [https://dashboard.mythx.io/#/console/analyses/groups/${{ needs.mythx.outputs.group_id }}](https://dashboard.mythx.io/#/console/analyses/groups/${{ needs.mythx.outputs.group_id }})'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/npm-release-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ jobs:
matrix:
package: [contracts, contracts-ethers]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: ${{ inputs.ref != '' }}
with:
ref: ${{ inputs.ref }}
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: ${{ inputs.ref == '' }}
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 16
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
- name: updates changelog.md
run: VERSION=$(cat package.json | jq -r .version)
sed -i "s/^\#\# \[UPCOMING\]/## [UPCOMING]\n\n\## $VERSION\nOn $(date +'%Y-%m-%d %H:%M:%S')/" "./packages/${{ matrix.package }}/CHANGELOG.md"
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: ${{matrix.package}}
path: ./packages/${{ matrix.package }}/
Expand All @@ -90,15 +90,15 @@ jobs:
runs-on: ubuntu-latest
needs: [build_deploy]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
token: ${{ secrets.ARABOT_PAT }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: packages/contracts/
name: contracts
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: packages/contracts-ethers/
name: contracts-ethers
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
outputs:
run: ${{ steps.checkSrc.outputs.run }}${{ steps.checkLabel.outputs.run }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/style-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 16
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/subgraph-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
environment: ${{ steps.prepare.outputs.environment }}
matrix: ${{ steps.prepare.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Prepare
id: prepare
run: node .github/helpers/subgraph/buildMatrix.js '${{ github.ref }}'
Expand All @@ -44,7 +44,7 @@ jobs:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
token: ${{secrets.ARABOT_PAT}}

Expand Down Expand Up @@ -78,11 +78,11 @@ jobs:
fail-fast: false
matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.base_ref || github.ref }}
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 16
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/subgraph-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
outputs:
matrix: ${{ steps.prepare.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Prepare
id: prepare
run: node .github/helpers/subgraph/buildMatrix.js '${{ github.ref }}'
Expand All @@ -29,9 +29,9 @@ jobs:
fail-fast: false
matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 16
Expand All @@ -48,12 +48,12 @@ jobs:
run:
working-directory: ${{env.working-directory}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 16
Expand Down

0 comments on commit 104e381

Please sign in to comment.