Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/alioss-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Check alioss in Changed Files

on:
push:
branches:
- main
pull_request:
branches:
- main
# allow manually run the action:
workflow_dispatch:

jobs:
todo-check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Check for alioss in changed files
run: |
# Fetch the target branch
git fetch origin $GITHUB_BASE_REF

git switch -c check_branch

# Get the diff of the changes
DIFF=$(git diff origin/$GITHUB_BASE_REF check_branch)


# Check the diff for alioss
if echo "$DIFF" | grep -Eq '^\+.*(alioss)'; then
echo "alioss found in the changes. Please use upload to src/.vuepress/public/img."
# exit 1
else
echo "No alioss found in changed content."
fi