FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TypeScript/.github/workflows/sync-wiki.yml at main · charlessuh/TypeScript · GitHub
charlessuh
TypeScript
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TypeScript
/
.github
/
workflows
/
sync-wiki.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
59 lines (55 loc) · 2.18 KB
Breadcrumbs
TypeScript
/
.github
/
workflows
/
sync-wiki.yml
Copy path
File metadata and controls
59 lines (55 loc) · 2.18 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name
:
Sync Two Wiki Repos
on
:
[gollum]
permissions
:
contents
:
read
id-token
:
write
#
Ensure scripts are run with pipefail. See:
#
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
defaults
:
run
:
shell
:
bash
jobs
:
sync
:
runs-on
:
ubuntu-latest
environment
:
name
:
azure
deployment
:
false
steps
:
-
name
:
Get repo name
run
:
R=${GITHUB_REPOSITORY%?wiki}; echo "BASENAME=${R##*/}" >> $GITHUB_ENV
-
name
:
Checkout ${{ env.BASENAME }}-wiki
uses
:
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
with
:
repository
:
'
${{ github.repository_owner }}/${{ env.BASENAME }}-wiki
'
fetch-depth
:
0
persist-credentials
:
false
-
uses
:
azure/login@7ddb5af1ef8758cf1353cf3b42f940aee27ba21c
#
v3.0.2
with
:
client-id
:
${{ vars.AZURE_CLIENT_ID }}
tenant-id
:
${{ vars.AZURE_TENANT_ID }}
subscription-id
:
${{ vars.AZURE_SUBSCRIPTION_ID }}
-
name
:
Create GitHub App token
id
:
app-token
uses
:
microsoft/create-github-app-token-via-key-vault@5ba0d436e9c3cac52feff4d1f2f66f9698ce4a2d
#
v1
with
:
client-id
:
${{ vars.TYPESCRIPT_AUTOMATION_GITHUB_APP_CLIENT_ID }}
key-id
:
${{ vars.TYPESCRIPT_AUTOMATION_GITHUB_APP_KEY_ID }}
owner
:
microsoft
repositories
:
|
TypeScript
TypeScript-wiki
permission-contents
:
write
-
name
:
Configure git for GitHub App token
shell
:
bash
env
:
GITHUB_APP_TOKEN
:
${{ steps.app-token.outputs.token }}
run
:
|
set -euo pipefail
basic_auth="$(node -e 'process.stdout.write(Buffer.from("x-access-token:" + process.env.GITHUB_APP_TOKEN).toString("base64"))')"
echo "::add-mask::$basic_auth"
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ${basic_auth}"
-
name
:
Run sync
run
:
./.github/workflows/sync
env
:
PUSHER
:
typescript-automation[bot] <290192711+typescript-automation[bot]@users.noreply.github.com>
AUTH
:
${{ steps.app-token.outputs.token }}
Back
|
FazBrowse Home
|
New Git URL