Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaofeng1227 committed Sep 19, 2024
1 parent 8bce07f commit 6ed3889
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/pre_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
# - name: Set up Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '14'

- name: Install dependencies
run: npm install
# - name: Install dependencies
# run: npm install

- name: Run tests
run: npm test
# - name: Run tests
# run: npm test

- name: Run linter
run: npm run lint
# - name: Run linter
# run: npm run lint
26 changes: 13 additions & 13 deletions .github/workflows/pull_quest_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:
# 确保拉取的是 pull request 的代码
ref: ${{ github.event.pull_request.head.sha }}

- name: Get applist
id: getlist
run: |
git diff --name-only HEAD^ HEAD
changed_files=$(git diff --name-only HEAD^ HEAD)
app_list=$(echo "$changed_files" | grep -E 'apps/.*/(.env|docker-compose.yml)$' | awk -F'/' '{print $2}' | sort | uniq)
echo "APP_LISTS=$app_list" >> $GITHUB_ENV
# - name: Get applist
# id: getlist
# run: |
# git diff --name-only HEAD^ HEAD
# changed_files=$(git diff --name-only HEAD^ HEAD)
# app_list=$(echo "$changed_files" | grep -E 'apps/.*/(.env|docker-compose.yml)$' | awk -F'/' '{print $2}' | sort | uniq)
# echo "APP_LISTS=$app_list" >> $GITHUB_ENV

- name: Update readme when app's variables.json changed
run: |
docker network create websoft9
pip install python-dotenv
python3 build/test_apps.py "${{ env.APP_LISTS }}"
if: env.APP_LISTS != ''
# - name: Update readme when app's variables.json changed
# run: |
# docker network create websoft9
# pip install python-dotenv
# python3 build/test_apps.py "${{ env.APP_LISTS }}"
# if: env.APP_LISTS != ''

0 comments on commit 6ed3889

Please sign in to comment.