Skip to content

Commit 23dc3e2

Browse files
authored
Merge pull request #53 from UncleGrumpy/workflow-improvments
Improve CI workflow
2 parents 159576d + eb249c8 commit 23dc3e2

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
#
66
# This is a workflow for atomvm/atomvm_www to Publish atomvm.net documentation using GitHub Pages
77

8-
name: Build
8+
name: Build Test
99

1010
# Controls when the workflow will run
1111
on:
1212
# Triggers the workflow on push or pull request events but only for the master branch
1313
push:
1414
branches: [ "*" ]
1515

16+
pull_request:
17+
branches: [ "*" ]
18+
1619
# Allows you to run this workflow manually from the Actions tab
1720
workflow_dispatch:
1821

@@ -71,4 +74,5 @@ jobs:
7174
git config --local user.email "[email protected]"
7275
git config --local user.name "AtomVM Doc Bot"
7376
git add .
74-
git commit -m "Update Documentation"
77+
git commit -m "Update Website Frontend: ${{ github.event.head_commit.message }}"
78+
git log -1

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,16 @@ jobs:
6464
touch www/.nojekyll
6565
6666
- name: Commit files
67-
if: github.repository == 'atomvm/atomvm_www'
6867
working-directory: ./www
6968
run: |
7069
git checkout Production
7170
git branch --show-current
7271
git config --local user.email "[email protected]"
7372
git config --local user.name "AtomVM Doc Bot"
7473
git add .
75-
git commit -m "Update Documentation"
74+
git commit -m "Update Website Frontend\n${{ github.event.workflow_run.head_commit.message }}"
75+
git log -1
76+
7677
- name: Push changes
7778
if: github.repository == 'atomvm/atomvm_www'
7879
working-directory: ./www

0 commit comments

Comments
 (0)