Skip to content

Commit

Permalink
Including server SHA in commit message.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisoelkers committed Nov 24, 2023
1 parent 70d9bc8 commit fa942da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ jobs:
run: |
rm -r ./*
- name: Build Frontend Gallery
id: build
working-directory: graylog2-server/graylog2-web-interface
run: |
yarn install
cd docs
yarn install
yarn run docs:build
cp -r styleguide/* $GITHUB_WORKSPACE/frontend-documentation
SERVER_SHA=`git rev-parse HEAD`
echo "::set-output name=serverSha::${SERVER_SHA}"
- name: Commit Results
working-directory: frontend-documentation
run: |
Expand All @@ -38,7 +41,7 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "Gary Bot"
git add -A
git commit -m "Update website to $SERVER_SHA"
git commit -m "Update website to ${{ steps.build.outputs.serverSha }}"
git push origin gh-pages
else
echo "No changes made, skipping commit"
Expand Down

0 comments on commit fa942da

Please sign in to comment.