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

more cleanup on workflows - missed removal #252

Merged
merged 1 commit into from
Dec 6, 2023
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
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 }}
Loading