-
-
Notifications
You must be signed in to change notification settings - Fork 82
42 lines (37 loc) · 1.25 KB
/
update-ss13-org-mirror.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Sync spacestation13/tgstation-server
on:
push:
branches:
- dev
tags:
- "*"
workflow_dispatch:
concurrency:
group: "ss13-mirror-sync"
cancel-in-progress: true
jobs:
fork-sync:
name: Fork Sync
runs-on: ubuntu-latest
steps:
- name: Generate App Token
id: app-token-generation
uses: actions/create-github-app-token@v1
with:
owner: spacestation13
repositories: tgstation-server
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
ref: dev
fetch-depth: 0
fetch-tags: true
token: ${{ steps.app-token-generation.outputs.token }}
- name: Push to Spacestation13 Fork
run: |
git config user.name "tgstation-server-ci[bot]"
git config user.email "161980869+tgstation-server-ci[bot]@users.noreply.github.com"
git push "https://tgstation-server-ci:${{ steps.app-token-generation.outputs.token }}@github.com/spacestation13/tgstation-server"
git push -f --tags "https://tgstation-server-ci:${{ steps.app-token-generation.outputs.token }}@github.com/spacestation13/tgstation-server"