Skip to content

feat: APP-2797 - Implement TransactionDataListItem.Structure module component #134

feat: APP-2797 - Implement TransactionDataListItem.Structure module component

feat: APP-2797 - Implement TransactionDataListItem.Structure module component #134

name: Storybook Preview Remove
on:
pull_request:
types:
- unlabeled
- closed
env:
NODE_VERSION: 18
NODE_CACHE: "yarn"
jobs:
remove-preview:
if: contains(github.event.pull_request.labels.*.name, 'preview') || github.event.label.name == 'preview'
runs-on: ubuntu-latest
steps:
- name: Install pyyaml
run: pip install --user pyyaml packaging
- name: Install ipfs-cluster-ctl
run: |
wget https://dist.ipfs.io/ipfs-cluster-ctl/v1.0.0/ipfs-cluster-ctl_v1.0.0_linux-amd64.tar.gz
tar xvfz ipfs-cluster-ctl_v1.0.0_linux-amd64.tar.gz
- name: Get deployment
uses: peter-evans/[email protected]
id: get-deployment
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: "Storybook IPFS Hash: "
- name: Unpin from IPFS
if: steps.get-deployment.outputs.comment-id != 0
run: |
COMMENT='${{ steps.get-deployment.outputs.comment-body }}'
IFS=" " read -ra array <<< "$COMMENT"
hash=${array[3]}
./ipfs-cluster-ctl/ipfs-cluster-ctl --basic-auth '${{ secrets.IPFS_BASIC_AUTH }}' --host '${{ vars.IPFS_HOST_ADDRESS }}' pin rm $hash
- name: Delete Comment
uses: actions/[email protected]
if: steps.get-deployment.outputs.comment-id != 0
with:
script: |
github.rest.issues.deleteComment({
comment_id: ${{ steps.get-deployment.outputs.comment-id }},
owner: context.repo.owner,
repo: context.repo.repo,
})