-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2337,8 +2337,16 @@ jobs: | |
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Generate App Token | ||
id: app-token-generation | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
repositories: tgstation-ppa | ||
app-id: ${{ secrets.APP_ID }} | ||
private-key: ${{ secrets.APP_PRIVATE_KEY }} | ||
|
||
- name: Clone | ||
run: git clone -b master --single-branch "https://[email protected]/tgstation/tgstation-server" --depth 1 . | ||
|
||
- name: Parse TGS version | ||
run: echo "TGS_VERSION=$(xmlstarlet sel -N X="http://schemas.microsoft.com/developer/msbuild/2003" --template --value-of /X:Project/X:PropertyGroup/X:TgsCoreVersion build/Version.props)" >> $GITHUB_ENV | ||
|
@@ -2366,10 +2374,10 @@ jobs: | |
run: git tag -a tgstation-server-v${{ env.TGS_VERSION }} -m tgstation-server-v${{ env.TGS_VERSION }} | ||
|
||
- name: Push Commit | ||
run: git push | ||
run: git push "https://tgstation-server-ci:${{ steps.app-token-generation.outputs.token }}@github.com/tgstation/tgstation-server" | ||
|
||
- name: Force Push Tags | ||
run: git push -f --tags | ||
run: git push -f --tags "https://tgstation-server-ci:${{ steps.app-token-generation.outputs.token }}@github.com/tgstation/tgstation-server" | ||
|
||
changelog-regen: | ||
name: Regenerate Changelog | ||
|
@@ -2516,8 +2524,8 @@ jobs: | |
shell: powershell | ||
run: Sleep 600 | ||
|
||
- name: Ensure Latest Release is TGS Release | ||
- name: Update Winget PR with automated message | ||
env: | ||
TGS_RELEASE_NOTES_TOKEN: ${{ secrets.DEV_PUSH_TOKEN }} # Has to be a user here | ||
TGS_RELEASE_NOTES_TOKEN: ${{ secrets.DEV_PUSH_TOKEN }} # Has to be the user that opened the PR | ||
shell: powershell | ||
run: dotnet release_notes_bins/Tgstation.Server.ReleaseNotes.dll --link-winget ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |