-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f04a65f
commit 07c1d16
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,26 +16,25 @@ jobs: | |
- name: Set branch name as env var | ||
run: echo "BRANCH_NAME=${{ github.ref_name }}" >> $GITHUB_ENV | ||
|
||
- name: Use branch name | ||
- name: Print branch name | ||
run: echo "The branch name is $BRANCH_NAME" | ||
|
||
- name: Execute remote build command | ||
uses: appleboy/[email protected] | ||
env: | ||
BRANCH_NAME: ${{ github.ref_name }} | ||
FOO: 'BAR' | ||
with: | ||
host: ${{ secrets.REMOTE_HOST }} | ||
username: ${{ secrets.REMOTE_USERNAME }} | ||
password: ${{ secrets.REMOTE_PASSWORD }} | ||
port: ${{ secrets.REMOTE_PORT }} | ||
envs: BRANCH_NAME,FOO | ||
envs: BRANCH_NAME | ||
script: | | ||
echo "I am $FOO" | ||
echo "Building branch: $BRANCH_NAME" | ||
source /root/.bashrc | ||
source ~/.bashrc | ||
which node && which npm | ||
cd /html/derecksnotes-playground/test-derecksnotes.com/ | ||
git fetch origin $BRANCH_NAME | ||
git fetch | ||
git checkout $BRANCH_NAME | ||
git pull | ||
npm install | ||
|