Skip to content

Commit

Permalink
use go
Browse files Browse the repository at this point in the history
  • Loading branch information
catatsuy committed Feb 4, 2024
1 parent f23c6d7 commit 55195bd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ jobs:
- name: Initialize the project
run: make init

- name: Check for changes in golang directory
id: check-changes
run: |
if git diff --name-only ${{ github.sha }} | grep 'golang/'; then
echo "Changes detected in golang directory"
echo "::set-output name=go_changes_detected::true"
fi
- name: Update compose.yml if changes are detected
if: steps.check-changes.outputs.go_changes_detected == 'true'
run: |
sed -i 's|build: ruby/|build: golang/|' ./webapp/compose.yml
- name: Start the server
run: |
cd webapp
Expand Down

0 comments on commit 55195bd

Please sign in to comment.