Skip to content

Commit 87d9c6b

Browse files
authored
switch to reusing workflows (#132)
* test: try reusing workflows * test: update reusable workflow * test: update reusable workflow * test: update reusable workflow * test: run job sequentially
1 parent 8a94474 commit 87d9c6b

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

.github/workflows/run-test.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Test action and package"
1+
name: "Test cpp-linter-action"
22

33
on:
44
push:
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/checkout@v3
1818
with:
1919
fetch-depth: 0
20+
token: ${{ secrets.PAT_TOKEN }}
2021
- name: retag latest commit for testing
2122
run: |
2223
git config user.name 'github-actions'
@@ -26,19 +27,7 @@ jobs:
2627
git tag -a latest -m 'Retag latest commit'
2728
git push origin latest
2829
29-
test-action:
30-
needs: [add-tag]
31-
runs-on: ubuntu-latest
32-
steps:
33-
- uses: convictional/[email protected]
34-
with:
35-
owner: cpp-linter
36-
repo: test-cpp-linter-action
37-
github_token: ${{ secrets.PAT_TOKEN }}
38-
workflow_file_name: cpp-lint-action.yml
39-
ref: master
40-
wait_interval: 10
41-
client_payload: '{}'
42-
propagate_failure: true
43-
trigger_workflow: true
44-
wait_workflow: true
30+
call-test-action:
31+
uses: cpp-linter/test-cpp-linter-action/.github/workflows/cpp-lint-action.yml@master
32+
secrets: inherit
33+
needs: add-tag

0 commit comments

Comments
 (0)