File tree 2 files changed +9
-12
lines changed
2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 11
11
# Pushes should only run on mainline branch "development"
12
12
if : github.event_name == 'push' && github.repository == 'AMReX-Codes/pyamrex' && github.ref == 'refs/heads/development'
13
13
name : 🔄 Update Stub Files
14
- permissions :
15
- # Give the default GITHUB_TOKEN write permission to commit and push the
16
- # changed files back to the repository.
17
- contents : write
14
+ secrets :
15
+ PYAMREX_PUSH_TOKEN : ${{ secrets.PYAMREX_PUSH_TOKEN }}
18
16
uses : ./.github/workflows/stubs.yml
19
17
20
18
ubuntu :
Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ name: 🔄 Update Stub Files
2
2
3
3
# This workflow updates the .pyi stub files for documentation and interactive use.
4
4
5
- on : [workflow_call]
5
+ on :
6
+ workflow_call :
7
+ secrets :
8
+ PYAMREX_PUSH_TOKEN :
9
+ required : true
6
10
7
11
concurrency :
8
12
group : ${{ github.ref }}-${{ github.head_ref }}-stubs
19
23
CXXFLAGS : " -O1"
20
24
OMP_NUM_THREAD : 2
21
25
22
- permissions :
23
- # Give the default GITHUB_TOKEN write permission to commit and push the
24
- # changed files back to the repository.
25
- contents : write
26
-
27
26
steps :
28
- - uses : actions/checkout@v3
27
+ - uses : actions/checkout@v4
29
28
with :
30
29
token : ${{ secrets.PYAMREX_PUSH_TOKEN }}
31
30
83
82
run : |
84
83
mpiexec -np 1 python3 -m pytest tests/
85
84
86
- - uses : stefanzweifel/git-auto-commit-action@v4
85
+ - uses : stefanzweifel/git-auto-commit-action@v5
87
86
name : Commit Updated Stub Files
88
87
with :
89
88
commit_message : Update Stub Files
You can’t perform that action at this time.
0 commit comments