33 lines
1.3 KiB
YAML
33 lines
1.3 KiB
YAML
name: Unused Vendor Settings Operations Build
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ['ops/unused-vendor-settings-*']
|
|
|
|
jobs:
|
|
unused-vendor-settings:
|
|
runs-on: dune-ci
|
|
steps:
|
|
- name: Check out exact revision
|
|
shell: bash
|
|
env:
|
|
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
set -euo pipefail
|
|
git init .
|
|
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
git checkout --detach FETCH_HEAD
|
|
- name: Validate and package the scoped vendor configuration operation
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
python3 tools/test_unused_vendor_settings.py -v
|
|
mkdir unused-vendor-artifacts
|
|
cp tools/disable-unused-vendor-settings.py tools/unused-vendor-settings.json unused-vendor-artifacts/
|
|
printf '%s\n' "$(git rev-parse HEAD)" > unused-vendor-artifacts/SOURCE_COMMIT
|
|
(cd unused-vendor-artifacts && sha256sum -- *.py *.json SOURCE_COMMIT > SHA256SUMS)
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: DuneRealms-Unused-Vendor-Settings
|
|
path: unused-vendor-artifacts/
|
|
if-no-files-found: error
|

Staff