✨ Supports being called by other repositories as an action
This commit is contained in:
39
.github/workflows/test-action.yml
vendored
Normal file
39
.github/workflows/test-action.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: 'Test Pake Action'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
url:
|
||||
description: 'URL to package'
|
||||
required: true
|
||||
default: 'https://weekly.tw93.fun'
|
||||
name:
|
||||
description: 'App name'
|
||||
required: true
|
||||
default: 'TestApp'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Build Pake App
|
||||
id: build
|
||||
uses: ./
|
||||
with:
|
||||
url: ${{ github.event.inputs.url }}
|
||||
name: ${{ github.event.inputs.name }}
|
||||
debug: true
|
||||
|
||||
- name: Upload Package
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: pake-app
|
||||
path: ${{ steps.build.outputs.package-path }}
|
||||
Reference in New Issue
Block a user