Merge branch 'master' of https://osredm.com/osredm/osredm_help
Context testing / dump_contexts_to_log (push) Successful in 2s Details
Context testing / job1 (push) Successful in 5s Details

This commit is contained in:
p71924506 2025-02-13 08:51:20 +08:00
commit 50828681a3
2 changed files with 16 additions and 22 deletions

View File

@ -0,0 +1,16 @@
name: Context testing
on: push
jobs:
job1:
runs-on: ubuntu-latest
steps:
- name: 更新帮助中心
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: root
password: ${{ secrets.PASSWORD }}
port: 22
script: cd osredm_help && git pull && docker restart help_nginx

View File

@ -54,25 +54,3 @@ jobs:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
job3:
runs-on: ubuntu-latest
steps:
- id: step1
run: echo "job===========${{ github.job }}"
- id: step5
name: "日志接口地址run_number"
run: echo "3======${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}/jobs/0"
- name: Dump jobs context
env:
JOBS_CONTEXT: ${{ toJson(jobs) }}
run: echo "$JOBS_CONTEXT"
- id: step6
run: |
ls /var/run/act/workflow/
echo "log setp5...................."
cat /var/run/act/workflow/step5
echo "log setp4...................."
cat /var/run/act/workflow/envs.txt
echo "log setp6...................."
cat /var/run/act/workflow/SUMMARY.md