File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 9292 - name : Query Raw
9393 run : LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server query-raw
9494
95- - name : Checkout repository
96- uses : actions/checkout@v4
97-
9895 - name : Save Display Outputs
9996 run : |
10097 # Save startparameters output (extract from config or command)
@@ -106,10 +103,14 @@ jobs:
106103 # Save query output
107104 LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server query > query-${{ matrix.shortname }}server.txt
108105
109- - name : Push to details-outputs branch
110- uses : Automattic/action-commit-to-branch@master
111- with :
112- branch : " details-outputs"
113- commit_message : " GitHub Actions build: ${{ steps.date.outputs.date }}"
106+ - name : Commit and Push Only TXT Files to Branch
114107 env :
115- GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
108+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
109+ run : |
110+ git config --global user.email "actions@github.com"
111+ git config --global user.name "GitHub Actions"
112+ branch_name="details-outputs"
113+ git checkout $branch_name || git checkout -b $branch_name
114+ git add *.txt
115+ git commit -m "Publish details outputs txt files" || echo "Nothing to commit"
116+ git push origin $branch_name || echo "Nothing to push"
You can’t perform that action at this time.
0 commit comments