refactor(cicd): add step 1 of Gitea Action
This commit is contained in:
26
.gitea/workflows/deliver.yml
Normal file
26
.gitea/workflows/deliver.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: Wallset Pipeline
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'assets/**'
|
||||||
|
|
||||||
|
env:
|
||||||
|
ENTRY_FOLDER: assets
|
||||||
|
PACKAGE_NAME: "" # <- à adapter
|
||||||
|
RELEASE_VERSION: v${{ github.run_number }}
|
||||||
|
PACKAGE_REGISTRY_URL: https://your.gitea.instance/api/packages/...
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
detect-changes:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
changed: ${{ steps.set.outputs.changed }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Detect changed packs
|
||||||
|
id: set
|
||||||
|
run: |
|
||||||
|
PACKS=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^assets/' | cut -d '/' -f2 | sort -u | jq -R -s -c 'split("\n")[:-1]')
|
||||||
|
echo "changed=$PACKS" >> $GITHUB_OUTPUT
|
Reference in New Issue
Block a user