diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e3ca56f..8ac607c7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: wiki@querz.net - target-branch: main \ No newline at end of file + run: | + cd mcaselector-wiki + git config --global user.name 'Querz' + git config --global user.email 'wiki@querz.net' + 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 \ No newline at end of file diff --git a/update_version b/update_version index e902cdb7..cd805e91 100644 --- a/update_version +++ b/update_version @@ -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'