svf-lib 1.0.2278 → 1.0.2280
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,30 +8,46 @@ jobs:
|
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
9
|
steps:
|
|
10
10
|
- uses: actions/checkout@v2
|
|
11
|
+
|
|
11
12
|
- uses: actions/setup-node@v2
|
|
12
13
|
with:
|
|
13
14
|
node-version: 12
|
|
14
15
|
registry-url: https://registry.npmjs.org/
|
|
16
|
+
|
|
15
17
|
- name: publish-svf-lib
|
|
16
18
|
run: |
|
|
17
|
-
if [ "$RUNNER_OS" = "Linux" ]; then sudo apt-get update
|
|
19
|
+
if [ "$RUNNER_OS" = "Linux" ]; then sudo apt-get update ; fi
|
|
18
20
|
cat package.json
|
|
19
21
|
npm publish
|
|
20
22
|
env:
|
|
21
|
-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
23
|
+
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
|
|
22
24
|
|
|
23
25
|
trigger-svf-python:
|
|
24
26
|
if: github.event_name == 'push' # Only run on push events
|
|
25
27
|
needs: build
|
|
26
28
|
runs-on: ubuntu-latest
|
|
27
29
|
steps:
|
|
28
|
-
- name:
|
|
30
|
+
- name: Checkout source repo
|
|
31
|
+
uses: actions/checkout@v2
|
|
32
|
+
|
|
33
|
+
- name: Check for changes in SVF-linux-x86_64/Release-build
|
|
34
|
+
id: changes
|
|
35
|
+
run: |
|
|
36
|
+
git fetch origin master --depth=2
|
|
37
|
+
CHANGED=$(git diff --name-only HEAD^ HEAD | grep '^SVF-linux-x86_64/Release-build/' || true)
|
|
38
|
+
echo "Changed files: $CHANGED"
|
|
39
|
+
if [ -z "$CHANGED" ]; then
|
|
40
|
+
echo "should_trigger=false" >> $GITHUB_OUTPUT
|
|
41
|
+
else
|
|
42
|
+
echo "should_trigger=true" >> $GITHUB_OUTPUT
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
- name: Trigger SVF-Python workflow if needed
|
|
46
|
+
if: steps.changes.outputs.should_trigger == 'true'
|
|
29
47
|
run: |
|
|
30
48
|
git clone https://github.com/SVF-tools/SVF-Python.git
|
|
31
49
|
cd SVF-Python
|
|
32
50
|
git config user.name "github-actions[bot]"
|
|
33
51
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
34
|
-
git commit --allow-empty -m "trigger:
|
|
52
|
+
git commit --allow-empty -m "trigger: changes in SVF-linux-x86_64/Release-build"
|
|
35
53
|
git push https://yuleisui:${{secrets.yulei_git_key}}@github.com/SVF-tools/SVF-Python.git HEAD:main
|
|
36
|
-
env:
|
|
37
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|