File tree 2 files changed +7
-32
lines changed
2 files changed +7
-32
lines changed Original file line number Diff line number Diff line change 1
1
name : Run Spectral on Pull Requests
2
2
3
3
4
- on : pull_request
4
+ on : [push]
5
5
6
6
7
7
jobs :
22
22
repo-token : ${{ secrets.GITHUB_TOKEN }}
23
23
24
24
# Print the names of changed files
25
- - name : Print changed files
26
- run : |
27
- echo "Changed files: ${{ steps.changed-files.outputs.modified_files }}"
28
-
29
- # Run Spectral on changed files
30
- -
uses :
stoplightio/[email protected]
31
- with :
32
- file_glob : ${{ steps.changed-files.outputs.modified_files }}
25
+ - run : |
26
+ printenv
Original file line number Diff line number Diff line change 1
1
name : Convert to Postman
2
2
3
- on :
4
- pull_request :
5
- branches :
6
- - master
3
+ on : [push]
7
4
8
5
jobs :
9
6
convert-to-postman :
28
25
npx @apideck/portman -l "$file" -o "./PostmanCollections/$file"
29
26
done
30
27
31
- - name : Configure Git
32
- if : ${{ steps.get-changed-files.outputs.any_changed == 'true' }}
33
- run : |
34
- git config --local user.email "${{ github.event.pull_request.user.email }}"
35
- git config --local user.name "${{ github.event.pull_request.user.login }}"
36
-
37
- - name : Commit changes
38
- if : ${{ steps.get-changed-files.outputs.any_changed == 'true' }}
39
- run : |
40
- git add PostmanCollections/*
41
- git commit -m "Update generated files by portman"
42
- git pull --rebase origin "${{ github.head_ref }}"
43
-
44
- - name : Push changes
45
- if : ${{ steps.get-changed-files.outputs.any_changed == 'true' }}
46
-
47
- with :
48
- branch : ${{ github.head_ref }}
49
- github_token : ${{ secrets.GITHUB_TOKEN }}
28
+ # Print the names of changed files
29
+ - run : |
30
+ printenv
You can’t perform that action at this time.
0 commit comments