removed old redundant github workflows
This commit is contained in:
1 parent
af8e30a8e8
commit
5da5b15228
4 files changed
-153
No files matched your search
@@ -1,61 +0,0 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Detect relevant changes
|
||||
id: changes
|
||||
shell: bash
|
||||
run: |
|
||||
BASE="${{ github.event.pull_request.base.sha }}"
|
||||
HEAD="${{ github.sha }}"
|
||||
|
||||
echo "Base: $BASE"
|
||||
echo "Head: $HEAD"
|
||||
|
||||
files="$(git diff --name-only "$BASE" "$HEAD")"
|
||||
echo "Changed files:"
|
||||
echo "$files"
|
||||
|
||||
if echo "$files" | grep -Eq '^(src/|scripts/|angular\.json$|tsconfig.*\.json$|package\.json$|package-lock\.json$|public/i18n/)'; then
|
||||
echo "run_build=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "run_build=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Skip build (no relevant changes)
|
||||
if: steps.changes.outputs.run_build != 'true'
|
||||
run: |
|
||||
echo "No files changed that affect the build/tests. Marking CI as successful."
|
||||
exit 0
|
||||
|
||||
- name: Setup Node
|
||||
if: steps.changes.outputs.run_build == 'true'
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24.13.0
|
||||
cache: npm
|
||||
|
||||
- name: Pin npm version
|
||||
if: steps.changes.outputs.run_build == 'true'
|
||||
run: |
|
||||
npm i -g npm@11.8.0
|
||||
npm --version
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.changes.outputs.run_build == 'true'
|
||||
run: npm ci
|
||||
|
||||
- name: Build
|
||||
if: steps.changes.outputs.run_build == 'true'
|
||||
run: npm run build --if-present
|
||||
@@ -1,46 +0,0 @@
|
||||
name: Fix Dependabot lockfile
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
regen-lockfile:
|
||||
if: github.actor == 'dependabot[bot]'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24.13.0
|
||||
cache: npm
|
||||
|
||||
- name: Pin npm
|
||||
run: npm i -g npm@11.8.0
|
||||
|
||||
- name: Regenerate lockfile with repo toolchain
|
||||
run: |
|
||||
rm -rf node_modules
|
||||
npm install --package-lock-only
|
||||
|
||||
- name: Commit lockfile if changed
|
||||
run: |
|
||||
if git diff --quiet -- package-lock.json; then
|
||||
echo "No lockfile changes"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git config user.name "dependabot[bot]"
|
||||
git config user.email "49699333+dependabot[bot]@users.noreply.github.com"
|
||||
git add package-lock.json
|
||||
git commit -m "chore(deps): regenerate lockfile with Node 24 / npm 11.8"
|
||||
git push
|
||||
@@ -1,31 +0,0 @@
|
||||
name: Sync development branch with master
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Fast-forward development to master
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
git fetch origin master development
|
||||
|
||||
git checkout -B development origin/development || git checkout -b development
|
||||
|
||||
git merge --ff-only origin/master
|
||||
|
||||
git push origin development
|
||||
@@ -1,15 +0,0 @@
|
||||
name: Workflow Lint
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
paths:
|
||||
- ".github/workflows/**"
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: rhysd/actionlint@v1.7.10
|
||||
Reference in new issue
Block a user