fixup #3
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
name: generate idehelper | |
on: | |
push: | |
branches: | |
- dev | |
paths-ignore: | |
- 'README.md' | |
- 'renovate.json' | |
- '.github/workflows/update-dockerhub.yml' | |
- '.github/workflows/website_build.yml' | |
- 'docs' | |
workflow_dispatch: # Allows action to be run manually from the Actions tab | |
jobs: | |
regenerate-idehelper: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: spin up dev | |
run: make | |
- name: make regenerate-idehelper | |
run: make regenerate-idehelper | |
- name: Check for changes | |
run: | | |
if [[ -n "$(git status --porcelain)" ]]; then | |
echo "Changes detected. Preparing to commit."; | |
else | |
echo "No changes detected."; | |
exit 0; | |
fi | |
- name: Commit changes | |
if: success() && steps.check-for-changes.outcome == 'success' | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git add . | |
git commit -m "Regenerate IDE helper files [ci]" | |
git push origin dev |