Skip to content

Add VERSION to DESCRIPTION automatically #3

Add VERSION to DESCRIPTION automatically

Add VERSION to DESCRIPTION automatically #3

Workflow file for this run

name: Autoreconf Mirror Branch
on:
push:
branches: [ main ]
jobs:
autoreconf:
runs-on: ubuntu-latest
steps:
- name: Checkout Dev Branch
uses: actions/checkout@v2
with:
ref: 'dev'
- name: Set up Autotools
run: sudo apt-get update && sudo apt-get install -y autoconf automake libtool sed
- name: Run autoreconf
run: autoreconf -i
- name: Substitute VERSION into DESCRIPTION
run: |

Check failure on line 24 in .github/workflows/autoreconf.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/autoreconf.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
VERSION=$(cat VERSION)
sed "s/@VERSION@/$VERSION/g" DESCRIPTION.in > DESCRIPTION
- name: Push to Main Branch
run: |
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git add -A
git commit -m "Auto-update Autotools files" || echo "No changes to commit"
git push origin HEAD:main -f