Skip to content

Commit af7111f

Browse files
Update move-file to the latest version πŸš€ (#97)
* fix(package): update move-file to version 2.0.0 * chore(package): update lockfile package-lock.json * feat(actions) : Deal with branch cases (WIP) Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com> Co-authored-by: Jacques Yakoub <jacques.yakoub@gmail.com>
1 parent c1fba70 commit af7111f

File tree

3 files changed

+29
-74
lines changed

3 files changed

+29
-74
lines changed

β€Ž.github/workflows/documentation-changes.ymlβ€Ž

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,17 @@ jobs:
1616
npm install -g @openapitools/openapi-generator-cli@1.0.10-4.2.3
1717
- name: Set up env variables
1818
run: |
19-
echo "::set-env name=CURRENT_BRANCH::$(echo ${{ github.base_ref }} | sed 's|.*/||')"
20-
echo "::set-env name=TARGET_BRANCH::$(echo ${{ github.head_ref }} | sed 's|.*/||')"
21-
- name: Clones repository with the two separate branch ( ${{ env.CURRENT_BRANCH }} and ${{ env.TARGET_BRANCH }})
22-
run: |
23-
git clone -b ${{ env.TARGET_BRANCH }} --depth 1 --single-branch https://github.com/${{ github.repository }}.git A
24-
git clone -b ${{ env.CURRENT_BRANCH }} --depth 1 --single-branch https://github.com/${{ github.repository }}.git B
19+
echo "::set-env name=CURRENT_BRANCH::$(echo ${{ github.head_ref }} | sed 's|.*/||')"
20+
echo "::set-env name=TARGET_BRANCH::$(echo ${{ github.base_ref }} | sed 's|.*/||')"
21+
- name: Clone repository in branch ${{ env.TARGET_BRANCH }}
22+
uses: actions/checkout@v2
23+
with:
24+
path: 'A'
25+
ref: ${{ github.base_ref }}
26+
- name: Clone repository in branch ${{ env.CURRENT_BRANCH }}
27+
uses: actions/checkout@v2
28+
with:
29+
path: 'B'
2530
- name: Check if OAS from ${{ env.CURRENT_BRANCH }} is valid
2631
run: |
2732
npx openapi-generator validate -i B/api.yml

β€Žpackage-lock.jsonβ€Ž

Lines changed: 17 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"lodash.uniqwith": "^4.5.0",
3737
"mime-types": "latest",
3838
"morgan": "^1.10.0",
39-
"move-file": "^1.2.0",
39+
"move-file": "^2.0.0",
4040
"multer": "^1.4.2",
4141
"openapi-enforcer": "^1.10.1",
4242
"openapi-enforcer-middleware": "^1.2.2",

0 commit comments

Comments
 (0)