Added _rsplugins/1000-builtin manifest; changed how manifests are upd… #18
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 Manifests | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- '_rsruntime/**' | ||
- '_rsplugins/1000-builtin/**' | ||
jobs: | ||
filter_paths: | ||
name: "Check which paths need updating" | ||
runs-on: ubuntu-latest | ||
outputs: | ||
rsruntime: ${{ steps.filter_paths.outputs.rsruntime }} | ||
plugins_builtin: ${{ steps.filter_paths.outputs.plugins_builtin }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter_paths | ||
with: | ||
filters: | | ||
rsruntime: | ||
- '_rsruntime/**' | ||
rsplugins_builtin: | ||
- '_rsplugins/1000-builtin/**' | ||
update_manif: | ||
needs: filter_paths | ||
strategy: | ||
matrix: | ||
manif: | ||
- {path: '_rsruntime', key: ${{ secrets.MAN_KEY__rsruntime }}, dorun: ${{ needs.filter_paths.outputs.rsruntime }}} | ||
- {path': '_rsplugins/1000-builtin', key: ${{ secrets.MAN_KEY__rsplugins_builtin }}, dorun: ${{ needs.filter_paths.outputs.rsplugins_builtin }}} | ||
name: "Update manifest for ${{ matrix.manif.path }}" | ||
if: ${{ matrix.manif.dorun }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
cache: pip | ||
- name: "Print python3 version" | ||
run: "python3 --version" | ||
- name: "Explicitly install requirements" | ||
run: "python3 -m pip install -r requirements.txt" | ||
- name: "Extract key" | ||
env: | ||
MAN_KEY: ${{ matrix.manif.key }} | ||
run: | | ||
echo "$MAN_KEY" | python3 ./devel/pysign.py readinto ./key.pyk | ||
- name: "Update manifest" | ||
env: | ||
MAN_PATH: ${{ matrix.manif.path }} | ||
run: | | ||
python3 ./devel/mkmanifest.py update "$MAN_PATH/MANIFEST.ini" "$MAN_PATH/" --overwrite | ||
- name: "Sign manifest" | ||
env: | ||
MAN_PATH: ${{ matrix.manif.path }} | ||
run: | | ||
python3 ./devel/mkmanifest.py sign "$MAN_PATH/MANIFEST.ini" ./key.pyk --overwrite | ||
- name: "Remove key" | ||
run: "rm ./key.pyk" | ||
- name: "Commit and push changes" | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "Automatic manifest update (triggered by ${{ github.actor }}: ${{ github.sha }})" |