refactor(cicd): replace github variables to get the base commit
Some checks failed
Wallset Pipeline / detect-changes (pull_request) Failing after 15s
Some checks failed
Wallset Pipeline / detect-changes (pull_request) Failing after 15s
also add a github_context env var to see all available variables
This commit is contained in:
@@ -16,9 +16,17 @@ jobs:
|
||||
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.before }} ${{ github.sha }} | grep '^assets/' | cut -d '/' -f2 | sort -u | jq -R -s -c 'split("\n")[:-1]'
|
||||
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]'
|
||||
|
Reference in New Issue
Block a user