diff options
author | Nathanaƫl Houn <contact@nathanaelhoun.fr> | 2023-05-15 00:21:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-14 23:21:21 +0100 |
commit | 36184d9c387ad73f865b86701540ea8b7c38c825 (patch) | |
tree | 28d95efc368785c34e72351d4ba8a787ceeefade | |
parent | Upgrade pnpm and node versions; Upgrade npm modules (diff) | |
download | ferdium-recipes-36184d9c387ad73f865b86701540ea8b7c38c825.tar.gz ferdium-recipes-36184d9c387ad73f865b86701540ea8b7c38c825.tar.zst ferdium-recipes-36184d9c387ad73f865b86701540ea8b7c38c825.zip |
fix(ci): version bump check when new recipe and multiple commits (#362)
-rw-r--r-- | .github/workflows/check-pr.yml | 6 | ||||
-rw-r--r-- | .github/workflows/check-recipe-version-bump/dist/index.js | 2 | ||||
-rw-r--r-- | .github/workflows/check-recipe-version-bump/index.js | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index b7f37cd..def73ab 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml | |||
@@ -14,11 +14,9 @@ jobs: | |||
14 | uses: actions/checkout@v3 | 14 | uses: actions/checkout@v3 |
15 | - name: Fetch main branch | 15 | - name: Fetch main branch |
16 | run: git fetch origin main --depth 1 | 16 | run: git fetch origin main --depth 1 |
17 | - uses: lots0logs/gh-action-get-changed-files@2.1.4 | 17 | - uses: tj-actions/changed-files@v35 |
18 | id: changed-files | 18 | id: changed-files |
19 | with: | ||
20 | token: ${{ secrets.GITHUB_TOKEN }} | ||
21 | - name: Checking recipe version bump | 19 | - name: Checking recipe version bump |
22 | uses: ./.github/workflows/check-recipe-version-bump | 20 | uses: ./.github/workflows/check-recipe-version-bump |
23 | with: | 21 | with: |
24 | changed-files: ${{ steps.changed-files.outputs.modified }} | 22 | changed-files: ${{ steps.changed-files.outputs.modified_files }} |
diff --git a/.github/workflows/check-recipe-version-bump/dist/index.js b/.github/workflows/check-recipe-version-bump/dist/index.js index bccc451..92d622b 100644 --- a/.github/workflows/check-recipe-version-bump/dist/index.js +++ b/.github/workflows/check-recipe-version-bump/dist/index.js | |||
@@ -4063,7 +4063,7 @@ async function readFileFromGitBranch(branch, filename) { | |||
4063 | 4063 | ||
4064 | try { | 4064 | try { |
4065 | const changedFilesString = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('changed-files'); | 4065 | const changedFilesString = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('changed-files'); |
4066 | const changedFiles = JSON.parse(changedFilesString); | 4066 | const changedFiles = changedFilesString.split(' '); |
4067 | 4067 | ||
4068 | const changedFilesInRecipes = changedFiles | 4068 | const changedFilesInRecipes = changedFiles |
4069 | .filter(filename => filename.startsWith('recipes/')) | 4069 | .filter(filename => filename.startsWith('recipes/')) |
diff --git a/.github/workflows/check-recipe-version-bump/index.js b/.github/workflows/check-recipe-version-bump/index.js index 606c1bd..3c40480 100644 --- a/.github/workflows/check-recipe-version-bump/index.js +++ b/.github/workflows/check-recipe-version-bump/index.js | |||
@@ -32,7 +32,7 @@ async function readFileFromGitBranch(branch, filename) { | |||
32 | 32 | ||
33 | try { | 33 | try { |
34 | const changedFilesString = core.getInput('changed-files'); | 34 | const changedFilesString = core.getInput('changed-files'); |
35 | const changedFiles = JSON.parse(changedFilesString); | 35 | const changedFiles = changedFilesString.split(' '); |
36 | 36 | ||
37 | const changedFilesInRecipes = changedFiles | 37 | const changedFilesInRecipes = changedFiles |
38 | .filter(filename => filename.startsWith('recipes/')) | 38 | .filter(filename => filename.startsWith('recipes/')) |