Skip to content

Commit

Permalink
Merge pull request #456 from prprmurakami0916/create-update-postman-c…
Browse files Browse the repository at this point in the history
…ollection-workflow

postmanコレクション更新用wfを修正
  • Loading branch information
prprmurakami0916 authored Sep 13, 2024
2 parents 4484824 + 17f0045 commit 40167e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-postman-collection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
env:
product: accounting
download-url: https://raw.githubusercontent.com/freee/freee-api-schema/master/v2020_06_15/open-api-3/api-schema.json
collection-id: 77985c23-b135-4b1b-898f-7f4890e2bb0b,
collection-id: 77985c23-b135-4b1b-898f-7f4890e2bb0b
postman-api-key: ${{ secrets.POSTMAN_API_KEY }}
steps:
- uses: actions/checkout@v4
Expand All @@ -50,7 +50,7 @@ jobs:
env:
product: hr
download-url: https://raw.githubusercontent.com/freee/freee-api-schema/master/hr/open-api-3/api-schema.json
collection-id: 7ba7d5ed-5cdd-4946-8922-cbee12187829,
collection-id: 7ba7d5ed-5cdd-4946-8922-cbee12187829
postman-api-key: ${{ secrets.POSTMAN_API_KEY }}
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions script/update-postman-collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const updateCollection = {
const config = {
method: 'put',
maxBodyLength: Infinity,
url: 'https://api.getpostman.com/collections/' + collectionID,
url: `https://api.getpostman.com/collections/${collectionID}`,
headers: {
'Content-Type': 'application/json',
'Content-Type': 'application/json',
'X-API-Key': apiKey
},
data : updateCollection
Expand Down

0 comments on commit 40167e7

Please sign in to comment.