upgpkg: python-selenium 4.27.1-2 #343
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Changes detected! | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- 'pu.sh' | |
- 'refre.sh' | |
- 'renovate.json' | |
- 'llama.cpp-cuda/**' | |
- 'llama.cpp-hip/**' | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- 'pu.sh' | |
- 'refre.sh' | |
- 'renovate.json' | |
- 'llama.cpp-cuda/**' | |
- 'llama.cpp-hip/**' | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
find_changes: | |
name: Find Changes | |
runs-on: ubuntu-latest | |
container: ghcr.io/archlinux/archlinux:base-devel | |
timeout-minutes: 5 | |
outputs: | |
list: ${{ steps.changes.outputs.changed_pkgs }} | |
steps: | |
- name: Update system and install dependencies | |
run: | | |
pacman-key --init | |
pacman -Syu --noconfirm git jq | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Find Changes | |
id: changes | |
run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
if [ ${{ github.event_name }} == 'push' ] | |
then | |
CHANGED_DIRS=$(git diff --name-only --diff-filter=d ${{ github.event.before }}..${{ github.event.after }} -- | cut -d / -f 1 | uniq) | |
elif [ ${{ github.event_name }} == 'pull_request' ] | |
then | |
git checkout ${{ github.event.pull_request.base.ref }} -- | |
git checkout ${{ github.event.pull_request.head.ref }} -- | |
CHANGED_DIRS=$(git diff --name-only --diff-filter=d ${{ github.event.pull_request.base.ref }}...${{ github.event.pull_request.head.ref }} -- | cut -d / -f 1 | uniq) | |
elif [ ${{ github.event_name }} == 'workflow_dispatch' ] | |
then | |
CHANGED_DIRS=$(git diff --name-only HEAD..HEAD~1 -- | cut -d / -f 1 | uniq) | |
fi | |
# Remove .github from CHANGED_DIRS | |
FINAL_CHANGED_DIRS=() | |
for dir in $(echo ${CHANGED_DIRS} | sed "s/.github//" | sed "s/^LICENSE$//" | sed "s/^README.md$//" | sed "s/^refre.sh$//" | sed "s/^renovate.json$//" | uniq) | |
do | |
FINAL_CHANGED_DIRS+=("${dir}") | |
done | |
# Set output | |
echo "changed_pkgs=$(jq -cn '$ARGS.positional' --args "${FINAL_CHANGED_DIRS[@]}")" >> $GITHUB_OUTPUT | |
trigger_build: | |
name: Trigger | |
needs: find_changes | |
uses: ./.github/workflows/build.yml | |
with: | |
packages: ${{ needs.find_changes.outputs.list }} |