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 File Extraction
on: [push]
jobs:
action:
uses: ./.github/workflows/build_action.yaml
root-file:
runs-on: ubuntu-latest
needs:
- action
name: Extract Example File From Root of Built 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
@ -17,9 +26,16 @@ jobs:
- run: test -e ${{ steps.extract.outputs.destination }}/001.txt || exit 1
nested-file:
runs-on: ubuntu-latest
needs:
- action
name: Extract Nexted Example File From Built 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