-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] use GitHub Actions to re-generate R configure (#4140)
* use GitHub Actions to re-generate R configure * Update R-package/README.md Co-authored-by: James Lamb <[email protected]> Co-authored-by: James Lamb <[email protected]>
- Loading branch information
1 parent
593aef3
commit 9388b2e
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: R generate configure | ||
|
||
on: | ||
repository_dispatch: | ||
types: [gha_run_r_configure] | ||
|
||
jobs: | ||
r-configure: | ||
name: r-configure | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
container: "ubuntu:20.04" | ||
steps: | ||
- name: Install essential software before checkout | ||
run: | | ||
apt-get update | ||
apt-get install --no-install-recommends -y \ | ||
ca-certificates \ | ||
git | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 5 | ||
submodules: true | ||
repository: microsoft/LightGBM | ||
ref: "refs/heads/${{ fromJSON(github.event.client_payload.pr_branch) }}" | ||
token: ${{ secrets.WORKFLOW }} | ||
persist-credentials: true | ||
- name: Update configure | ||
shell: bash | ||
run: ./R-package/recreate-configure.sh || exit -1 | ||
- name: Push changes | ||
run: | | ||
git config --global user.name "GitHub Actions Bot" | ||
git config --global user.email "[email protected]" | ||
git add "./R-package/configure" | ||
git commit --allow-empty -m "Auto-update configure" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters