Skip to content

Commit 6cd0529

Browse files
Merge pull request #86 from ssarmokadam/master
Update sync-docs.yml
2 parents 35b47ed + 9cac502 commit 6cd0529

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/sync-docs.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ jobs:
1919
echo "REPO_SOURCE=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
2020
echo "REPO_DEST=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}').wiki" >> $GITHUB_ENV
2121
shell: bash
22-
- name: Generate build number
23-
uses: einaregilsson/build-number@v3
24-
with:
25-
token: ${{secrets.github_token}}
2622
- name: Checkout ${REPO_SOURCE} Repository
2723
run: git clone https://github.com/${ORG}/${REPO_SOURCE}.git ${REPO_SOURCE}
2824
- name: Checkout ${REPO_DEST} Repository
@@ -54,7 +50,7 @@ jobs:
5450
cd ${REPO_DEST}
5551
git status
5652
git add .
57-
git commit -m "${REPO_SOURCE} documentation | GitHub Actions build number $BUILD_NUMBER"
53+
git commit -m "${REPO_SOURCE} documentation | GitHub Actions $GITHUB_WORKFLOW $GITHUB_RUN_NUMBER"
5854
git remote add origin-wiki "https://${BUILD_USER}:${BUILD_USER_PASSWD}@github.com/${ORG}/${REPO_DEST}.git"
5955
git push origin-wiki master
6056
- name: Sync devonfw guide
@@ -69,6 +65,6 @@ jobs:
6965
git pull
7066
cd ..
7167
git add .
72-
git commit -m "${REPO_SOURCE} documentation | GitHub Actions build number $BUILD_NUMBER"
68+
git commit -m "${REPO_SOURCE} documentation | GitHub Actions $GITHUB_WORKFLOW $GITHUB_RUN_NUMBER"
7369
git remote add origin-wiki "https://${BUILD_USER}:${BUILD_USER_PASSWD}@github.com/${ORG}/${REPO_CONSOLIDATE}.git"
7470
git push origin-wiki master

0 commit comments

Comments
 (0)