Skip to content

Test1

Test1 #8

Workflow file for this run

name: Dummy Action
on:
pull_request:
branches: ["master"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: check-artifact-exists
uses: LIT-Protocol/artifact-exists-action@v0
with:
name: master_sha
- if: ${{steps.check-artifact-exists.outputs.exists}}
name: dowload-art
uses: actions/download-artifact@v4
with:
name: master_sha
path: master_sha.txt
- if: ${{steps.check-artifact-exists.outputs.exists}}
name: print-artifact
run: |
value=`cat master_sha.txt'
echo "result: $value"
- if: ${{ ! steps.check-artifact-exists.outputs.exists }}
run: echo "no artifact stored"
- name: gen-artifact
run: ${{ github.event.pull_request.base.sha }} > master_sha.txt
- name: show-new-sha
run: cat master_sha.txt
- name: upload-artifact
uses: actions/upload-artifact@v4
with:
name: master_sha
path: master_sha.txt