Merge pull request #1903 from tgstation/Begone

More CI Fixes
This commit is contained in:
Jordan Dominion
2024-08-22 20:20:18 -04:00
committed by GitHub
4 changed files with 9 additions and 25 deletions
+7 -13
View File
@@ -80,7 +80,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
env:
TGS_TELEMETRY_KEY_FILE: /tmp/tgs_telemetry_key.txt
steps:
@@ -92,6 +91,13 @@ jobs:
- name: Checkout (Branch)
uses: actions/checkout@v4
if: github.event_name == 'push' || github.event_name == 'schedule'
- name: Checkout (PR Merge)
uses: actions/checkout@v4
if: github.event_name != 'push' && github.event_name != 'schedule'
with:
ref: "refs/pull/${{ inputs.pull_request_number }}/merge"
- name: Read Current SHA
id: get-pr-sha
@@ -2068,12 +2074,6 @@ jobs:
if: (!(cancelled() || failure())) && needs.deploy-tgs.result == 'success'
needs: deploy-tgs
steps:
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.TGS_DOTNET_VERSION }}.0.x
dotnet-quality: ${{ env.TGS_DOTNET_QUALITY }}
- name: gh-pages Clone
run: git clone -b gh-pages --single-branch "https://git@github.com/tgstation/tgstation-server" $HOME/tgsdox
@@ -2097,12 +2097,6 @@ jobs:
mv $HOME/tgsdox/changelog.yml ./ 2>/dev/null
dotnet release_notes_bins/Tgstation.Server.ReleaseNotes.dll --generate-full-notes
- name: Generate App Token
run: |
dotnet release_notes_bins/Tgstation.Server.ReleaseNotes.dll --token-output-file ${{ runner.temp }}/installation_secret.txt ${{ secrets.TGS_CI_GITHUB_APP_TOKEN_BASE64 }}
echo "INSTALLATION_TOKEN=$(cat ${{ runner.temp }}/installation_secret.txt)" >> $GITHUB_ENV
rm ${{ runner.temp }}/installation_secret.txt
- name: gh-pages Push
run: |
pushd $HOME/tgsdox
@@ -2,6 +2,7 @@
const CONSIDERED_STEP_PREFIXES = [
"Build", // Nuget.org sporadic issues
"Install Native", // apt repository issues
"Test Service", // systemd bollocks
];
// Otherwise only check jobs that start with these.
+1 -1
View File
@@ -37,6 +37,6 @@ jobs:
allow_forks: true
user_name: tgstation-server-ci[bot]
user_email: 161980869+tgstation-server-ci[bot]@users.noreply.github.com
push_token: INSTALLATION_TOKEN
push_token: ${{ steps.app-token-generation.outputs.token }}
env:
GITHUB_TOKEN: ${{ steps.app-token-generation.outputs.token }}
@@ -35,17 +35,6 @@ jobs:
fetch-tags: true
token: ${{ steps.app-token-generation.outputs.token }}
- name: Build ReleaseNotes
run: dotnet build -c Release -p:TGS_HOST_NO_WEBPANEL=true tools/Tgstation.Server.ReleaseNotes/Tgstation.Server.ReleaseNotes.csproj
- name: Generate App Token
run: |
dotnet run -c Release --no-build --project tools/Tgstation.Server.ReleaseNotes --token-output-file ${{ runner.temp }}/installation_secret.txt ${{ secrets.TGS_CI_GITHUB_APP_TOKEN_BASE64 }}
echo "INSTALLATION_TOKEN=$(cat ${{ runner.temp }}/installation_secret.txt)" >> $GITHUB_ENV
rm ${{ runner.temp }}/installation_secret.txt
env:
TGS_RELEASE_NOTES_TOKEN: ${{ secrets.DEV_PUSH_TOKEN }}
- name: Push to Spacestation13 Fork
run: |
git config user.name "tgstation-server-ci[bot]"