Skip to content

Commit 11b5650

Browse files
committedJun 7, 2023
revised cron workflows (checkout on version, not main)
1 parent dc4d516 commit 11b5650

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed
 

‎.github/workflows/cron-conda.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: "Conda Update"
33
on:
44
schedule:
55
- cron: '0 10 * * 6' # everyday at 10am
6-
# push:
7-
# branches: [main, ]
6+
push:
7+
branches: [main, ]
88

99
jobs:
1010
get-version:

‎.github/workflows/cron-update.yml ‎.github/workflows/cron-vendor.yml

+31
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,41 @@ on:
77
branches: [main, ]
88

99
jobs:
10+
get-version:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.11'
20+
21+
- name: Install and Setup
22+
run: |
23+
set -x
24+
25+
python -m pip install -U pip setuptools wheel
26+
python -m pip install -e .
27+
28+
- name: Get Version
29+
id: get_version
30+
run: |
31+
set -x
32+
33+
echo "PCAPKIT_VERSION=$(python -c 'import pcapkit; print(pcapkit.__version__)')" >> $GITHUB_OUTPUT
34+
35+
outputs:
36+
PCAPKIT_VERSION: ${{ steps.get_version.outputs.PCAPKIT_VERSION }}
37+
1038
vendor-update:
1139
runs-on: macos-latest
40+
needs: [ get-version ]
1241
steps:
1342
- uses: actions/checkout@v3
43+
with:
44+
ref: v${{ needs.get-version.outputs.PCAPKIT_VERSION }}
1445

1546
- uses: actions/setup-python@v4
1647
with:

0 commit comments

Comments
 (0)
Please sign in to comment.