ci: Package action automatically on release branch (#15)

This commit is contained in:
Samuel Ryan 2022-12-02 16:37:11 +00:00 committed by GitHub
parent abde1147dd
commit 917745b929
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 161 additions and 1623 deletions

View file

@ -3,11 +3,20 @@ name: Test Directory Extraction
on: [push]
jobs:
action:
uses: ./.github/workflows/build_action.yaml
root-directory:
runs-on: ubuntu-latest
needs:
- action
name: Extract Contents of Directory from Example Image
steps:
- uses: actions/checkout@v2
- name: Load action build from cache
uses: actions/cache@v3
with:
path: dist
key: build-${{ github.sha }}
- run: docker build -t example:${{ github.sha }} ./.github/tests
- uses: ./
id: extract
@ -22,9 +31,16 @@ jobs:
- run: test -e ${{ steps.extract.outputs.destination }}/y/006.txt || exit 1
nested-directory:
runs-on: ubuntu-latest
needs:
- action
name: Extract Nested Directory from Example Image
steps:
- uses: actions/checkout@v2
- name: Load action build from cache
uses: actions/cache@v3
with:
path: dist
key: build-${{ github.sha }}
- run: docker build -t example:${{ github.sha }} ./.github/tests
- uses: ./
id: extract
@ -35,9 +51,16 @@ jobs:
- run: test -e ${{ steps.extract.outputs.destination }}/x/005.txt || exit 1
nested-directory-contents:
runs-on: ubuntu-latest
needs:
- action
name: Extract Nested Contents of Directory from Example Image
steps:
- uses: actions/checkout@v2
- name: Load action build from cache
uses: actions/cache@v3
with:
path: dist
key: build-${{ github.sha }}
- run: docker build -t example:${{ github.sha }} ./.github/tests
- uses: ./
id: extract