From 19fde07fb6c56d0356b76e65576539f8d5df5817 Mon Sep 17 00:00:00 2001 From: Erik Tank Date: Mon, 24 Oct 2022 05:55:33 -0700 Subject: [PATCH] Add steps to auto update Version for each release --- .github/workflows/create_alfredworkflow.yml | 6 ++++++ info.plist | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create_alfredworkflow.yml b/.github/workflows/create_alfredworkflow.yml index 61a231a..1e6ca82 100644 --- a/.github/workflows/create_alfredworkflow.yml +++ b/.github/workflows/create_alfredworkflow.yml @@ -5,9 +5,15 @@ on: types: [created] jobs: build: + name: Build alfredworkflow archive runs-on: macos-latest steps: - uses: actions/checkout@main + - name: Update Version + run: | + cd $GITHUB_WORKSPACE + NEW_VERSION=`echo ${{ github.ref }} | cut -d '/' -f 3`; sed -i'.bak' "s/{{VERSION}}/$NEW_VERSION/" info.plist + rm info.plist.bak - name: Archive Release uses: thedoctor0/zip-release@main with: diff --git a/info.plist b/info.plist index e586769..afa3ec4 100644 --- a/info.plist +++ b/info.plist @@ -360,7 +360,7 @@ perl linkopener.pl "$query" 2>&1 variablesdontexport version - 0.0.8 + {{VERSION}} webaddress https://github.com/skeletonkey/link_opener