Skip to content

Push artifacts from https://github.com/jgromes/RadioLib/commit/cbb812… #26

Push artifacts from https://github.com/jgromes/RadioLib/commit/cbb812…

Push artifacts from https://github.com/jgromes/RadioLib/commit/cbb812… #26

Workflow file for this run

name: Process RadioLib CI artifacts
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
process-l0:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Process L0 data
run:
|
cd radiolib-ci
./process-l0.sh
- name: Check for changes
run: |
if [[ -n "$(git status --porcelain)" ]]; then
echo "changes=true" >> $GITHUB_ENV
else
echo "changes=false" >> $GITHUB_ENV
fi
- name: Commit and push changes
if: env.changes == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git add .
git commit -m "Processed RadioLib CI L1 data [skip ci]"
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"