trigger #7870
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: update catalogue | |
on: | |
push: | |
branches: | |
- '*' | |
paths-ignore: | |
- '.github/workflows/trigger.yaml' | |
- 'README.md' | |
pull_request: | |
branches: | |
- '*' | |
paths-ignore: | |
- '.github/workflows/trigger.yaml' | |
- 'README.md' | |
repository_dispatch: | |
types: [ trigger ] | |
workflow_dispatch: | |
branches: ['*'] | |
concurrency: | |
group: publish | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-in-project: true | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v4 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Install dependencies | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
run: poetry install --no-interaction --no-root | |
- name: Install project | |
run: poetry install --no-interaction | |
- name: Get Input Repos | |
run: | | |
if [[ -d .input/Mobe1969/miniDSPBEQ ]] | |
then | |
pushd .input/Mobe1969/miniDSPBEQ | |
git pull | |
popd | |
else | |
git clone https://github.com/Mobe1969/miniDSPBEQ.git .input/Mobe1969/miniDSPBEQ | |
fi | |
if [[ -d .input/halcyon888/miniDSPBEQ ]] | |
then | |
pushd .input/halcyon888/miniDSPBEQ | |
git pull | |
popd | |
else | |
git clone https://github.com/halcyon-888/miniDSPBEQ.git .input/halcyon888/miniDSPBEQ | |
fi | |
if [[ -d .input/bmiller/miniDSPBEQ.wiki ]] | |
then | |
pushd .input/bmiller/miniDSPBEQ | |
git pull | |
popd | |
else | |
git clone https://github.com/bmiller/miniDSPBEQ.git .input/bmiller/miniDSPBEQ | |
fi | |
if [[ -d .input/t1g8rsfan/miniDSPBEQ ]] | |
then | |
pushd .input/t1g8rsfan/miniDSPBEQ | |
git pull | |
popd | |
else | |
git clone https://github.com/T1G8RS-FAN/MiniDSPBEQ.git .input/t1g8rsfan/miniDSPBEQ | |
fi | |
if [[ -d .input/kaelaria/Beq1 ]] | |
then | |
pushd .input/kaelaria/Beq1 | |
git pull | |
popd | |
else | |
git clone https://github.com/kaelaria/Beq1.git .input/kaelaria/Beq1 | |
fi | |
if [[ -d .input/remixmark/miniDSPBEQ ]] | |
then | |
pushd .input/remixmark/miniDSPBEQ | |
git pull | |
popd | |
else | |
git clone https://github.com/remixmark/miniDSPBEQ.git .input/remixmark/miniDSPBEQ | |
fi | |
- name: Get git metadata | |
run: | | |
M_SHA=$(cat meta/mobe1969.sha) | |
pushd .input/Mobe1969/miniDSPBEQ | |
git diff --name-only -z ${M_SHA}..HEAD -- *BEQ* | xargs -0 -I{} -- git log -1 --format="\"{}\",%at" {} | sort > d.diff | |
git rev-parse HEAD > d.sha | |
popd | |
mv .input/Mobe1969/miniDSPBEQ/d.diff meta/mobe1969.diff | |
mv .input/Mobe1969/miniDSPBEQ/d.sha meta/mobe1969.sha | |
M_SHA=$(cat meta/halcyon888.sha) | |
pushd .input/halcyon888/miniDSPBEQ | |
git diff --name-only -z ${M_SHA}..HEAD -- *BEQ*| xargs -0 -I{} -- git log -1 --format="\"{}\",%at" {} | sort > d.diff | |
git rev-parse HEAD > d.sha | |
popd | |
mv .input/halcyon888/miniDSPBEQ/d.diff meta/halcyon888.diff | |
mv .input/halcyon888/miniDSPBEQ/d.sha meta/halcyon888.sha | |
M_SHA=$(cat meta/aron7awol.sha) | |
pushd .input/bmiller/miniDSPBEQ | |
git diff --name-only -z ${M_SHA}..HEAD -- *BEQ* | xargs -0 -I{} -- git log -1 --format="\"{}\",%at" {} | sort > d.diff | |
git rev-parse HEAD > d.sha | |
popd | |
mv .input/bmiller/miniDSPBEQ/d.diff meta/aron7awol.diff | |
mv .input/bmiller/miniDSPBEQ/d.sha meta/aron7awol.sha | |
M_SHA=$(cat meta/t1g8rsfan.sha) | |
pushd .input/t1g8rsfan/miniDSPBEQ | |
git diff --name-only -z ${M_SHA}..HEAD -- *BEQ* | xargs -0 -I{} -- git log -1 --format="\"{}\",%at" {} | sort > d.diff | |
git rev-parse HEAD > d.sha | |
popd | |
mv .input/t1g8rsfan/miniDSPBEQ/d.diff meta/t1g8rsfan.diff | |
mv .input/t1g8rsfan/miniDSPBEQ/d.sha meta/t1g8rsfan.sha | |
M_SHA=$(cat meta/kaelaria.sha) | |
pushd .input/kaelaria/Beq1 | |
git diff --name-only -z ${M_SHA}..HEAD -- tv\/ movies\/ | xargs -0 -I{} -- git log -1 --format="\"{}\",%at" {} | sort > d.diff | |
git rev-parse HEAD > d.sha | |
popd | |
mv .input/kaelaria/Beq1/d.diff meta/kaelaria.diff | |
mv .input/kaelaria/Beq1/d.sha meta/kaelaria.sha | |
M_SHA=$(cat meta/remixmark.sha) | |
pushd .input/remixmark/miniDSPBEQ | |
git diff --name-only -z ${M_SHA}..HEAD -- *BEQ* | xargs -0 -I{} -- git log -1 --format="\"{}\",%at" {} | sort > d.diff | |
git rev-parse HEAD > d.sha | |
popd | |
mv .input/remixmark/miniDSPBEQ/d.diff meta/remixmark.diff | |
mv .input/remixmark/miniDSPBEQ/d.sha meta/remixmark.sha | |
- name: Update Catalogue | |
run: | | |
poetry run python beqcatalogue/__init__.py | |
echo $GITHUB_SHA > docs/version.txt | |
- name: Publish Catalogue | |
id: pub-cat | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Updated catalogue | |
- name: Update Issues | |
if: steps.pub-cat.outputs.changes_detected == 'true' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COMMIT_SHA: ${{ steps.pub-cat.outputs.commit_hash }} | |
run: | | |
poetry run python beqcatalogue/issues.py |