Add upload INI action (#962)

* Add upload INI action

* Run only when INI changes
This commit is contained in:
Piotr Rogowski 2022-11-04 00:39:45 +01:00 committed by GitHub
parent 9affde119e
commit 6b98ebbaaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 37 additions and 0 deletions

37
.github/workflows/upload-ini.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Upload INI
on:
push:
branches: [ master ]
paths:
- 'reference/speeduino.ini'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Validate INI
uses: hyper-tuner/ini-validate-action@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
filename: reference/speeduino.ini
upload:
runs-on: ubuntu-latest
if: github.repository_owner == 'noisymime'
needs: validate
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Upload INI
uses: hyper-tuner/ini-upload-action@v1
with:
api-url: "${{ secrets.HYPER_TUNER_INI_UPLOAD_URL }}"
username: "${{ secrets.HYPER_TUNER_INI_UPLOAD_USERNAME }}"
password: "${{ secrets.HYPER_TUNER_INI_UPLOAD_PASSWORD }}"
path: reference/speeduino.ini
ecosystem: speeduino