Skip to content

use correct test

use correct test #23

Workflow file for this run

name: Test Action
on:
pull_request:
push:
# branches:
# - main
permissions:
contents: read
jobs:
test-save:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test Save
id: test
uses: ./save
with:
path: .github
key: test-stash-${{ github.sha }}
- name: Check Output
env:
ID: ${{ steps.test.outputs.stash-id }}
URL: ${{ steps.test.outputs.stash-url }}
run: |
if [ -z "$ID" -o -z "$URL" ]; then
echo "Output empty"
exit 1
fi
test-restore:
needs: test-save
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test intra-workflow stash
uses: ./restore
with:
key: test-stash-${{ github.sha }}
path: intra
- run: ls -la intra
- name: Test inter-workflow stash
uses: ./restore
with:
key: test-stash-55f948fb85ff8e4d23da71e8feaf736cb8db90d2
path: inter
- run: ls -la inter