Skip to content

Commit 58e7348

Browse files
committed
change commit action
1 parent 7655f6b commit 58e7348

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/details-check.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ jobs:
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"

0 commit comments

Comments
 (0)