Skip to content

Commit 666cf87

Browse files
authored
Fix auto release step (#36)
* fix(workflows/release): remove if condition * fix(workflows/release): check for modified files in one step
1 parent 1641f74 commit 666cf87

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,14 @@ permissions:
1313
jobs:
1414
create-release:
1515
runs-on: ubuntu-latest
16-
if: contains(github.event.head_commit.message, 'Bump website version')
1716
steps:
1817
- name: Checkout repo
1918
uses: actions/checkout@v4
2019

21-
- name: Get modified files in last commit
22-
id: files
23-
run: |
24-
echo "files=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }})" >> "$GITHUB_OUTPUT"
25-
2620
- name: Check if only package.json was modified
27-
id: check_files
2821
run: |
29-
files="${{ steps.files.outputs.files }}"
22+
files=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }})
23+
3024
# Only package.json allowed
3125
if [ "$files" != "package.json" ]; then
3226
echo "Only package.json modification allowed, exiting."

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ the artifacts.
3333

3434
To actually do the deploy of the website and CV in release artifacts the following must be carried out:
3535

36-
1. Create a PR which only bumps the version named "Bump website version"
36+
1. Create a PR which only bumps the version in package.json
3737
2. By merging the PR it will trigger the deploy pipeline

0 commit comments

Comments
 (0)