Skip to content

Commit d403ddd

Browse files
committed
test print env
1 parent 8c56d79 commit d403ddd

File tree

2 files changed

+7
-32
lines changed

2 files changed

+7
-32
lines changed

.github/workflows/linter.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Run Spectral on Pull Requests
22

33

4-
on: pull_request
4+
on: [push]
55

66

77
jobs:
@@ -22,11 +22,5 @@ jobs:
2222
repo-token: ${{ secrets.GITHUB_TOKEN }}
2323

2424
# 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

.github/workflows/portman.yml

+4-23
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Convert to Postman
22

3-
on:
4-
pull_request:
5-
branches:
6-
- master
3+
on: [push]
74

85
jobs:
96
convert-to-postman:
@@ -28,22 +25,6 @@ jobs:
2825
npx @apideck/portman -l "$file" -o "./PostmanCollections/$file"
2926
done
3027
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-
uses: ad-m/[email protected]
47-
with:
48-
branch: ${{ github.head_ref }}
49-
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
# Print the names of changed files
29+
- run: |
30+
printenv

0 commit comments

Comments
 (0)