@@ -33,13 +33,13 @@ jobs:
3333 - name : Checkout Arrow
3434 uses : actions/checkout@v2
3535 with :
36- path : arrow
36+ repository : apache/ arrow
3737 - name : Set up Python
3838 uses : actions/setup-python@v2
3939 with :
4040 python-version : 3.8
4141 - name : Install Archery and Crossbow dependencies
42- run : pip install -e arrow/ dev/archery[bot]
42+ run : pip install -e dev/archery[bot]
4343 - name : Handle Github comment event
4444 env :
4545 ARROW_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4949 --event-name ${{ github.event_name }} \
5050 --event-payload ${{ github.event_path }}
5151
52- autotune :
53- name : " Fix all the things"
54- if : startsWith(github.event.comment.body, '@github-actions autotune')
55- runs-on : ubuntu-latest
56- steps :
57- - uses : actions/checkout@v2
58- - uses : r-lib/actions/pr-fetch@master
59- with :
60- repo-token : ${{ secrets.GITHUB_TOKEN }}
61- - name : See what is different
62- run : |
63- set -ex
64- git remote add upstream https://github.com/apache/arrow
65- git fetch upstream
66- changed() {
67- git diff --name-only HEAD..upstream/master | grep -e "$1" >/dev/null 2>&1
68- }
69- if changed '^r/.*\.R$'; then
70- echo "R_DOCS=true" >> $GITHUB_ENV
71- fi
72- if changed 'cmake' || changed 'CMake'; then
73- echo "CMAKE_FORMAT=true" >> $GITHUB_ENV
74- fi
75- if changed '^cpp/src'; then
76- echo "CLANG_FORMAT_CPP=true" >> $GITHUB_ENV
77- fi
78- if changed '^r/src'; then
79- echo "CLANG_FORMAT_R=true" >> $GITHUB_ENV
80- fi
81- - name : Run cmake_format
82- if : env.CMAKE_FORMAT == 'true' || endsWith(github.event.comment.body, 'everything')
83- run : |
84- set -ex
85- export PATH=/home/runner/.local/bin:$PATH
86- python3 -m pip install --upgrade pip setuptools wheel
87- python3 -m pip install -r dev/archery/requirements-lint.txt
88- python3 run-cmake-format.py
89- - name : Run clang-format on cpp
90- if : env.CLANG_FORMAT_CPP == 'true' || endsWith(github.event.comment.body, 'everything')
91- run : |
92- . .env # To get the clang version we use
93- cpp/build-support/run_clang_format.py \
94- --clang_format_binary=clang-format-${CLANG_TOOLS} \
95- --exclude_glob=cpp/build-support/lint_exclusions.txt \
96- --source_dir=cpp/src --quiet --fix
97- - name : Run clang-format on r
98- if : env.CLANG_FORMAT_R == 'true' || endsWith(github.event.comment.body, 'everything')
99- run : |
100- . .env # To get the clang version we use
101- cpp/build-support/run_clang_format.py \
102- --clang_format_binary=clang-format-${CLANG_TOOLS} \
103- --exclude_glob=cpp/build-support/lint_exclusions.txt \
104- --source_dir=r/src --quiet --fix
105- - uses : r-lib/actions/setup-r@v1
106- if : env.R_DOCS == 'true' || endsWith(github.event.comment.body, 'everything')
107- - name : Update R docs
108- if : env.R_DOCS == 'true' || endsWith(github.event.comment.body, 'everything')
109- shell : Rscript {0}
110- run : |
111- source("ci/etc/rprofile")
112- install.packages(c("remotes", "roxygen2"))
113- remotes::install_deps("r")
114- roxygen2::roxygenize("r")
115- - name : Commit results
116- run : |
117- git config user.name "$(git log -1 --pretty=format:%an)"
118- git config user.email "$(git log -1 --pretty=format:%ae)"
119- git commit -a -m 'Autoformat/render all the things [automated commit]' || echo "No changes to commit"
120- - uses : r-lib/actions/pr-push@master
121- with :
122- repo-token : ${{ secrets.GITHUB_TOKEN }}
123-
12452 rebase :
12553 name : " Rebase"
12654 if : startsWith(github.event.comment.body, '@github-actions rebase')
0 commit comments