From 6358df4721ec742a04f4abf4c3fe3ba40bf018d5 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 24 Oct 2024 22:38:26 -0700 Subject: [PATCH] #16 Add quick hello world Does the runner's shell environment get reset between steps? --- .gitea/workflows/hacking.yaml | 3 +++ .gitea/workflows/vyos-deploy.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/.gitea/workflows/hacking.yaml b/.gitea/workflows/hacking.yaml index d063f66d..8f7bfdf6 100644 --- a/.gitea/workflows/hacking.yaml +++ b/.gitea/workflows/hacking.yaml @@ -15,4 +15,7 @@ jobs: - name: List files in the repository run: | ls ${{ gitea.workspace }} + - name: List files changed in the most recent commit + run: | + git diff --name-only HEAD HEAD~1 - run: echo "🍏 This job's status is ${{ gitea.status }}." \ No newline at end of file diff --git a/.gitea/workflows/vyos-deploy.yaml b/.gitea/workflows/vyos-deploy.yaml index 44077169..b2de705a 100644 --- a/.gitea/workflows/vyos-deploy.yaml +++ b/.gitea/workflows/vyos-deploy.yaml @@ -24,6 +24,7 @@ jobs: ssh-keyscan 192.168.1.1 > ~/.ssh/known_hosts chmod 0600 ~/.ssh/known_hosts alias ssh='ssh -i /tmp/key' + ssh vyos@192.168.1.1 'echo $(date)' - name: Print running VyOS version run: | ./vyos.sh op show system image