File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ defaults:
24
24
jobs :
25
25
build :
26
26
runs-on : ubuntu-latest
27
+ # The actor check currently does not work. The `secrets.PAT` belongs to `delvedor` and not
28
+ # `elasticmachine`. We should make sure to change this in the future.
27
29
if : github.repository_owner == 'elastic' && github.actor != 'elasticmachine'
28
30
steps :
29
31
- name : Checkout
51
53
- name : Check for Changed Files
52
54
id : changes
53
55
run : |
54
- if [ -n "$(git status --porcelain)" ]; then
56
+ if [ -n "$(git status --porcelain ./output )" ]; then
55
57
echo "has-changes=1" >> $GITHUB_OUTPUT
56
58
fi
57
59
64
66
- name : Push Output
65
67
if : steps.changes.outputs.has-changes == '1'
66
68
run : |
67
- cd ./output
68
-
69
- git add -A
69
+ git add -A ./output
70
70
git commit -m "Update specification output"
71
-
72
- git status
73
-
74
71
git push
75
72
76
73
# For debugging purposes:
79
76
# env:
80
77
# BRANCH_NAME: output_${{ github.run_id }}_${{ github.run_attempt }}
81
78
# run: |
82
- # cd ./output
83
-
84
79
# git fetch
85
80
# git switch main
86
81
87
- # git add -A
82
+ # git add -A ./output
88
83
# git commit -m "Update specification output"
89
-
90
- # git status
91
-
92
84
# git push origin HEAD:refs/heads/${{ env.BRANCH_NAME }}
You can’t perform that action at this time.
0 commit comments