name: Run and Commit autotools
on:
  workflow_dispatch:
jobs:
  run-script:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository code
        uses: actions/checkout@v4
      - name: Install pre-requisites
        run: sudo apt-get update && sudo apt-get install build-essential autoconf
      - name: Run autotools
        run: bash ./misc/runautotools
      - name: Commit changes
        run: |
          git config --global user.name "GitHub Actions"
          git config --global user.email "actions@github.com"
          git commit -a -m "Run autotools"
          git push origin develop

