-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTwitter.yml
36 lines (34 loc) · 1015 Bytes
/
Twitter.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
# https://aka.ms/yaml
variables:
- group: Keys
trigger: none
pool:
vmImage: windows-2019
steps:
- checkout: self
clean: true
- task: PowerShell@2
displayName: Twitter
inputs:
pwsh: true
targetType: inline
script: |
$ErrorView="NormalView"
write-host "script"
$env:SCRIPTNAME
Set-Location '$(System.DefaultWorkingDirectory)'
$a=@{
TwitterAPIKey = '$(TwitterAPIKey)'
TwitterAPISecret = '$(TwitterAPISecret)'
TwitterAccessToken = '$(TwitterAccessToken)'
TwitterAccessTokenSecret = '$(TwitterAccessTokenSecret)'
MyTwitterAPIKey = '$(MyTwitterAPIKey)'
MyTwitterAPISecret = '$(MyTwitterAPISecret)'
MyTwitterAccessToken = '$(MyTwitterAccessToken)'
MyTwitterAccessTokenSecret = '$(MyTwitterAccessTokenSecret)'
GithubToken= '$(GithubToken)'
GitUserEmail ='$(GithubUserEmail)'
ScriptName = $env:ScriptName
}
$a|Out-string
& ".\Scripts\Twitter.ps1" @a