forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.21 KB
/
type-summary.yml
File metadata and controls
40 lines (38 loc) · 1.21 KB
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
name: "update type summary"
on:
push:
paths:
- '**/*.java'
- '**/*.yml'
jobs:
update-type-summary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 15
- name: Add execution right to the script
run: chmod +x gradlew
working-directory: ./typesummary
- name: Build SDK
run: ./gradlew --no-daemon build
- name: Build and run type summary project
run: ./gradlew --no-daemon run --args='-o ${{ github.workspace }}/typeSummary.txt'
working-directory: ./typesummary
- name: Get branch name
run: |
$branchName = $Env:GITHUB_REF.replace("refs/heads/", "")
echo "CURRENT_BRANCH=${branchName}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
shell: pwsh
- name: push
uses: github-actions-x/commit@v2.8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: ${{ env.CURRENT_BRANCH }}
commit-message: '- updates types summary'
force-add: 'true'
files: typeSummary.txt
name: Microsoft Graph DevX Tooling
email: GraphTooling@service.microsoft.com