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

fix: remove missing assert-git-changes file usage #457

Merged
merged 1 commit into from
Nov 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 46 additions & 52 deletions .github/workflows/fix-abi-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,55 +9,49 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup node.js version
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Cache yarn cache
id: cache-yarn-cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-${{ hashFiles('**/yarn.lock') }}

- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: node_modules-${{ hashFiles('**/yarn.lock') }}

- name: Install modules
run: yarn
if: |
steps.cache-yarn-cache.outputs.cache-hit != 'true' ||
steps.cache-node-modules.outputs.cache-hit != 'true'

- name: Compile code and extract ABI
run: yarn compile

- name: Check for ABI changes
id: changes
continue-on-error: true
run: .github/assert-git-changes.py
env:
TARGET: lib/abi/

- name: Create Pull Request
if: steps.changes.outcome != 'success'
uses: lidofinance/create-pull-request@v4
with:
branch: fix-abi-${{ github.ref_name }}
delete-branch: true
commit-message: "fix: Make ABIs up to date"
title: "Fix ABI ${{ github.ref_name }}"
body: "This PR is generated automatically. Merge it to apply fixes to the /lib/abi/"
- uses: actions/checkout@v2

- name: Setup node.js version
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Cache yarn cache
id: cache-yarn-cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-${{ hashFiles('**/yarn.lock') }}

- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: node_modules-${{ hashFiles('**/yarn.lock') }}

- name: Install modules
run: yarn
if: |
steps.cache-yarn-cache.outputs.cache-hit != 'true' ||
steps.cache-node-modules.outputs.cache-hit != 'true'

- name: Compile code and extract ABI
run: yarn compile

- name: Create Pull Request
if: steps.changes.outcome != 'success'
uses: lidofinance/create-pull-request@v4
with:
add-paths: lib/abi
branch: fix-abi-${{ github.ref_name }}
delete-branch: true
commit-message: 'fix: Make ABIs up to date'
title: 'Fix ABI ${{ github.ref_name }}'
body: 'This PR is generated automatically. Merge it to apply fixes to the /lib/abi/'