Skip to content

Commit 38d42fc

Browse files
committed
test 13
phew
1 parent 8eb977e commit 38d42fc

File tree

1 file changed

+23
-31
lines changed

1 file changed

+23
-31
lines changed

.github/workflows/release-consolegalaxy.yml

+23-31
Original file line numberDiff line numberDiff line change
@@ -191,28 +191,6 @@ jobs:
191191
- name: list files tag:4
192192
run: ls -R
193193

194-
# # update the changelog file in the repository, please make a pull request locally after this
195-
# - name: Update resources
196-
# uses: test-room-7/action-update-file@v1
197-
# with:
198-
# file-path: CHANGELOGS.md
199-
# commit-msg: Update resources
200-
# github-token: ${{ secrets.GITHUB_TOKEN }}
201-
202-
# <---------------------------------------------- Update CHANGELOGS.md on the origin repository ---------------------------------------------->
203-
# - name: Replace and push CHANGELOGS.md
204-
# run: |
205-
# echo ${{ github.ref }}
206-
# git config --global user.name 'Anexgohan'
207-
# git config --global user.email 'monish05m@gmail.com'
208-
# cp folder_changelog/full/CHANGELOGS.md CHANGELOGS.md
209-
# git add CHANGELOGS.md
210-
# git commit -m "${{ github.ref_name }} - Auto Bot Updated CHANGELOGS.md"
211-
# git push
212-
213-
# git push origin HEAD:refs/heads/main
214-
# git pull origin main
215-
216194
# <================================================ Update-Repository ================================================>
217195
# start the release jobs
218196
Update-Repository:
@@ -225,7 +203,7 @@ jobs:
225203
with:
226204
token: ${{ secrets.PAT_ANEXGOHAN }}
227205
repository: ${{ github.repository }}
228-
ref: ${{ github.ref }}
206+
# ref: ${{ github.ref }}
229207

230208
# <---------------------------------------------- Download artifacts ---------------------------------------------->
231209
- name: Download changelog-full artifact
@@ -252,13 +230,27 @@ jobs:
252230
echo ${{ github.sha }}
253231
254232
233+
# # <---------------------------------------------- Update CHANGELOGS.md on the origin repository ---------------------------------------------->
234+
# - name: Replace and push CHANGELOGS.md
235+
# uses: EndBug/add-and-commit@v9
236+
# with:
237+
# add: 'folder_changelog/full/CHANGELOGS.md'
238+
# cwd: '.'
239+
# message: "${{ github.ref_name }} - Auto Bot Updated CHANGELOGS.md"
240+
# author_name: "github-actions[bot]"
241+
# author_email: no-reply@dontmailme.org
242+
# push: origin HEAD:refs/heads/main
243+
255244
# <---------------------------------------------- Update CHANGELOGS.md on the origin repository ---------------------------------------------->
256245
- name: Replace and push CHANGELOGS.md
257-
uses: EndBug/add-and-commit@v9
258-
with:
259-
add: 'folder_changelog/full/CHANGELOGS.md'
260-
cwd: '.'
261-
message: "${{ github.ref_name }} - Auto Bot Updated CHANGELOGS.md"
262-
author_name: "github-actions[bot]"
263-
author_email: no-reply@dontmailme.org
264-
push: origin HEAD:refs/heads/main
246+
run: |
247+
echo ${{ github.ref }}
248+
git config --global user.name "github-actions[bot]"
249+
git config --global user.email 'no-reply@dontmailme.org'
250+
cp folder_changelog/full/CHANGELOGS.md CHANGELOGS.md
251+
git add CHANGELOGS.md
252+
git commit -m "${{ github.ref_name }} - Auto Bot Updated CHANGELOGS.md"
253+
git push
254+
255+
# git push origin HEAD:refs/heads/main
256+
# git pull origin main

0 commit comments

Comments
 (0)