Skip to content

Commit

Permalink
use git commands to push to wiki repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Querz committed Jun 9, 2023
1 parent 441a971 commit 8f04d42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,10 @@ jobs:
shell: bash

- name: Push Wiki
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
with:
source-directory: mcaselector-wiki
destination-github-username: Querz
destination-repository-name: mcaselector-wiki
user-email: [email protected]
target-branch: main
run: |
cd mcaselector-wiki
git config --global user.name 'Querz'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}@github.com/Querz/mcaselector-wiki
git commit -am "Automated version update to 2.2.1"
shell: bash
1 change: 1 addition & 0 deletions update_version
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ sed -i -E "s/mcaselector-[0-9]+\.[0-9]+(\.[0-9]+)?\.jar/mcaselector-$application
# update GitHub workflows
sed -i -E "s/mcaselector-[0-9]+\.[0-9]+(\.[0-9]+)?\.jar/mcaselector-$applicationVersion.jar/g" '.github/workflows/release.yml'
sed -i -E "s/echo -n [0-9]+\.[0-9]+(\.[0-9]+)?/echo -n $applicationVersion/g" '.github/workflows/release.yml'
sed -i -E "s/Automated version update to [0-9]+\.[0-9]+(\.[0-9]+)?/Automated version update to $applicationVersion/g" '.github/workflows/release.yml'

# update issue template
sed -i -E "s/Version of MCA Selector \[e\.g\. [0-9]+\.[0-9]+(\.[0-9]+)?\]/Version of MCA Selector [e.g. $applicationVersion]/g" '.github/ISSUE_TEMPLATE/bug_report.md'
Expand Down

0 comments on commit 8f04d42

Please sign in to comment.