-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgenerate_postman_collection.yml
More file actions
33 lines (33 loc) · 1.07 KB
/
generate_postman_collection.yml
File metadata and controls
33 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy postman collection
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- main
jobs:
deployment:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: "Create env file"
run: |
touch .env
echo POSTMAN_API_KEY=${{ secrets.POSTMAN_API_KEY }} >> .env
echo POSTMAN_WORKSPACE_ID=${{ secrets.POSTMAN_WORKSPACE_ID }} >> .env
echo ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true >> .env
- run: npm install
- name: Changed Files
id: changed-files
uses: step-security/changed-files@v45
- run: node ./scripts/postman/run-postman-collection.js ${{ steps.changed-files.outputs.all_changed_and_modified_files }}
- name: List all changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_and_modified_files }}; do
echo "$file was changed"
done