mirror of
https://github.com/halcyon/asdf-java.git
synced 2024-10-07 00:22:10 +08:00
0010d1f98d
* Release is a file which results in the absolute_dir_path command to fail to return the expected result. Changed it to bin/.. Fixes https://github.com/halcyon/asdf-java/issues/137 * Added test to validate the /usr/libexec/java_home working as expected * Added information to the liberica install about it not being integrated in /usr/libexec/java_home * Only run the update-data on the main repository
37 lines
1017 B
YAML
37 lines
1017 B
YAML
name: Update Java release data
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '30 */8 * * *'
|
|
jobs:
|
|
update:
|
|
if: github.repository == 'halcyon/asdf-java'
|
|
runs-on: 'ubuntu-latest'
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: mstksg/get-package@v1
|
|
with:
|
|
apt-get: curl
|
|
- name: Install jq 1.6
|
|
run: |
|
|
curl -Lo jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
|
|
chmod +x jq
|
|
jq --version
|
|
- name: Run update script
|
|
env:
|
|
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
export PATH=".:$PATH"
|
|
./update_data.bash
|
|
- name: Commit files
|
|
run: |
|
|
git config --local user.email "action@github.com"
|
|
git config --local user.name "GitHub Action"
|
|
git add data/*.tsv
|
|
git clean -f
|
|
git commit -m "Update Java release data" || true
|
|
- name: Push changes
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|