File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -13,20 +13,14 @@ permissions:
1313jobs :
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."
Original file line number Diff line number Diff line change @@ -33,5 +33,5 @@ the artifacts.
3333
3434To 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
37372 . By merging the PR it will trigger the deploy pipeline
You can’t perform that action at this time.
0 commit comments