Skip to content

Commit

Permalink
more cleanup on workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
james-prysm committed Dec 5, 2023
1 parent 83355ad commit 545cba0
Showing 1 changed file with 1 addition and 43 deletions.
44 changes: 1 addition & 43 deletions .github/workflows/web-ui-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,46 +79,4 @@ jobs:

outputs:
new_sha: ${{ steps.new_shasum.outputs.SHA }}
old_tag: ${{ steps.previous_version.outputs.TAG_NAME }}


# Job for Prysm WORKSPACE modification and pull request
prysm_pull_request:
needs: build_and_release
runs-on: ubuntu-latest

steps:
- name: Checkout tools repo
uses: actions/checkout@v3
with:
repository: prysmaticlabs/prysm
path: prysm_repo
ref: develop

- name: Git pull
run: cd prysm_repo && git pull

- name: Get Current Tag
id: current_version
run: cd prysm_repo && echo ::set-output name=TAG::${GITHUB_REF#refs/*/}

- name: Replace Tag
uses: jacobtomlinson/gha-find-replace@v2
with:
find: ${{ needs.build_and_release.outputs.old_tag }}
replace: ${{ steps.current_version.outputs.TAG }}
include: "prysm_repo/WORKSPACE"

- name: Get the previous shasum
run: wget https://github.com/prysmaticlabs/prysm-web-ui/releases/download/${{ needs.build_and_release.outputs.old_tag }}/prysm-web-ui.tar.gz.sha256sum

- name: Get previous release shasum value
id: previous_shasum
run: echo "::set-output name=SHASUM::$(cat prysm-web-ui.tar.gz.sha256sum | awk '{print $1}')"

- name: Replace SHA
uses: jacobtomlinson/gha-find-replace@v2
with:
find: ${{ steps.previous_shasum.outputs.SHASUM }}
replace: ${{ needs.build_and_release.outputs.new_sha }}
include: "prysm_repo/WORKSPACE"
old_tag: ${{ steps.previous_version.outputs.TAG_NAME }}

0 comments on commit 545cba0

Please sign in to comment.