Files
Wallset/.gitea/workflows/deliver.yml
Simon d5720caadb
Some checks failed
Wallset Pipeline / detect-changes (pull_request) Failing after 15s
refactor(cicd): replace github variables to get the base commit
also add a github_context env var to see all available variables
2025-07-12 13:31:23 +02:00

33 lines
782 B
YAML

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: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Detect changed packs
id: set
run: |
git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep '^assets/' | cut -d '/' -f2 | sort -u | jq -R -s -c 'split("\n")[:-1]'