Skip to content

Commit

Permalink
use MetaMask/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
rickycodes committed Aug 2, 2022
1 parent bc54808 commit 44e54f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 35 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,22 @@ on:
branches: [main]

jobs:
check-release:
is-release:
# release merge commits come from GitHub user
if: github.event.head_commit.committer.name == 'GitHub'
outputs:
IS_RELEASE: ${{ steps.check-release.outputs.IS_RELEASE }}
IS_RELEASE: ${{ steps.is-release.outputs.IS_RELEASE }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.sha }}
# we need this commit + the last so we can compare below
fetch-depth: 2
# exit early if the version has not changed
- name: Check Release
id: check-release
run: ./scripts/check-release.sh ${{ github.event.before }}
- uses: MetaMask/[email protected]
id: is-release

publish-release:
permissions:
contents: write
if: needs.check-release.outputs.IS_RELEASE == 'true'
if: needs.is-release.outputs.IS_RELEASE == 'true'
runs-on: ubuntu-latest
needs: check-release
needs: is-release
steps:
- uses: actions/checkout@v2
with:
Expand Down
22 changes: 0 additions & 22 deletions scripts/check-release.sh

This file was deleted.

0 comments on commit 44e54f9

Please sign in to comment.