Skip to content

Commit

Permalink
auto
Browse files Browse the repository at this point in the history
  • Loading branch information
A-J-Bauer committed Feb 29, 2024
1 parent bdcc3c3 commit 2ac5151
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/MinifyVersionPublishToFolder/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static void Main(string[] args)
jsMin.Minify(streamReader, streamWriter);
}

Echo.WriteLine($"::exportVariable min_file_path={minfilepath}");
Echo.WriteLine($"::exportVariable check_new_version_for_dist=yes");
}
catch (Exception ex)
{
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
- uses: actions/checkout@v4
- name: Parse file, read version, check if exists in dist, if not write file and minified version to dist
run: |
echo "minify version publish to dist"
dotnet run --project .github/MinifyVersionPublishToFolder/MinifyVersionPublishToFolder.csproj vgauge.js dist
echo "test"
echo $min_file_path
- uses: actions/upload-artifact@v4
- name: check environment variable check_new_version_for_dist, if 'yes' then commit and push
if: ${{ env.check_new_version_for_dist == 'yes'}}
uses: EndBug/add-and-commit@v7
with:
name: min-file-path
path: /home/runner/work/VGauge/VGauge/dist/vgauge-1.0.2.min.js
default_author: github_actions


2 changes: 1 addition & 1 deletion vgauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,4 +634,4 @@ class VGauge {
icon.setAttribute('opacity', opacity);
}
}
}
}

0 comments on commit 2ac5151

Please sign in to comment.