Skip to content

Commit 6f0d815

Browse files
committed
Test
1 parent d31921a commit 6f0d815

File tree

3 files changed

+90
-34
lines changed

3 files changed

+90
-34
lines changed

.github/workflows/generate.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Generate Output
2+
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
7+
8+
# For debugging purposes:
9+
on: [pull_request]
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: false
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
if: github.actor != 'elastic-machine'
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
with:
27+
token: ${{ secrets.PAT }}
28+
persist-credentials: true
29+
30+
- name: Setup Node 16.x
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: 16.x
34+
cache: npm
35+
cache-dependency-path: '**/package-lock.json'
36+
37+
- name: Setup Dependencies
38+
run: |
39+
make setup
40+
41+
- name: Generate Output
42+
run: |
43+
make compile
44+
make generate
45+
46+
- name: Check for Changed Files
47+
id: changes
48+
run: |
49+
if [ -n "$(git status --porcelain)" ]; then
50+
echo "has-changes=1" >> $GITHUB_OUTPUT
51+
fi
52+
53+
- name: Set Git Identity
54+
if: steps.changes.outputs.has-changes == '1'
55+
run: |-
56+
git config --global user.email "[email protected]"
57+
git config --global user.name "Elastic Machine"
58+
59+
# - name: Push Output
60+
# if: steps.changes.outputs.has-changes == '1'
61+
# run: |
62+
# cd ./output
63+
64+
# git add -A
65+
# git commit -m "Update specification output"
66+
67+
# git status
68+
69+
# git push
70+
71+
# For debugging purposes:
72+
- name: Push Output
73+
if: steps.changes.outputs.has-changes == '1'
74+
env:
75+
BRANCH_NAME: output_${{ github.run_id }}_${{ github.run_attempt }}
76+
run: |
77+
cd ./output
78+
79+
git fetch
80+
git switch main
81+
82+
git add -A
83+
git commit -m "Update specification output"
84+
85+
git status
86+
87+
git push origin HEAD:refs/heads/${{ env.BRANCH_NAME }}

.github/workflows/output-check.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

specification/_types/Geo.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export class LatLon {
9898
* - as a `[lon, lat]` array
9999
* - as a string in `"<lat>, <lon>"` or WKT point formats
100100
*
101+
* Test
102+
*
101103
* @codegen_names latlon, geohash, coords, text
102104
*/
103105
// ES: GeoUtils.parseGeoPoint()
@@ -110,6 +112,7 @@ export type GeoLocation =
110112
export class LatLonGeoLocation {
111113
lat: double
112114
lon: double
115+
alt?: double
113116
}
114117

115118
export class GeoHashLocation {

0 commit comments

Comments
 (0)