You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to learn to use github actions, and towards that end I'm trying to set it up on my own local server at home.
I have the following simple action script, which tries to automatically update a repository on my server whenever changes to the repository are made.
The commands work when I run them on the command line, but not when github actions seems to run them, and I'm not sure why that is.
name: test
on:
push:
branches:
- main
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pull repo
run: |
cd /mnt/DataStore/docker/docker_stack
git stash push --include-untracked
git stash drop
git pull origin main
When the code runs through github actions on my selfhosted runner I get the following:
Run cd /mnt/DataStore/docker/docker_stack
cd /mnt/DataStore/docker/docker_stack
git stash push --include-untracked
git stash drop
git pull origin main
shell: /usr/bin/bash -e {0}
No local changes to save
No stash entries found.
Error: Process completed with exit code 1.
Any help or feedback as to what I'm doing wrong would be appreciated.
ActionsBuild, test, and automate your deployment pipeline with world-class CI/CDQuestion
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Question
Body
I'm currently trying to learn to use github actions, and towards that end I'm trying to set it up on my own local server at home.
I have the following simple action script, which tries to automatically update a repository on my server whenever changes to the repository are made.
The commands work when I run them on the command line, but not when github actions seems to run them, and I'm not sure why that is.
name: test
on:
push:
branches:
- main
jobs:
deploy:
runs-on: self-hosted
When the code runs through github actions on my selfhosted runner I get the following:
Run cd /mnt/DataStore/docker/docker_stack
cd /mnt/DataStore/docker/docker_stack
git stash push --include-untracked
git stash drop
git pull origin main
shell: /usr/bin/bash -e {0}
No local changes to save
No stash entries found.
Error: Process completed with exit code 1.
Any help or feedback as to what I'm doing wrong would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions