diff --git a/.github/MinifyVersionPublishToFolder/Program.cs b/.github/MinifyVersionPublishToFolder/Program.cs index 2cc798b..8303f10 100644 --- a/.github/MinifyVersionPublishToFolder/Program.cs +++ b/.github/MinifyVersionPublishToFolder/Program.cs @@ -174,8 +174,6 @@ static void Main(string[] args) { jsMin.Minify(streamReader, streamWriter); } - - Echo.WriteLine("{namecheck_new_version_for_dist}={value} >> $GITHUB_ENV"); } catch (Exception ex) { diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index e40136b..483eb30 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -12,10 +12,7 @@ jobs: - name: Parse file, read version, check if exists in dist, if not write file and minified version to dist run: | dotnet run --project .github/MinifyVersionPublishToFolder/MinifyVersionPublishToFolder.csproj vgauge.js dist - - name: check environment variable check_new_version_for_dist, if 'yes' then commit and push - if: ${{ env.check_new_version_for_dist == 'yes'}} + - name: add and commit uses: EndBug/add-and-commit@v7 with: default_author: github_actions - - diff --git a/vgauge.js b/vgauge.js index 53b41ac..c09acb9 100644 --- a/vgauge.js +++ b/vgauge.js @@ -634,4 +634,4 @@ class VGauge { icon.setAttribute('opacity', opacity); } } -} \ No newline at end of file +} \ No newline at end of file