Skip to content

Commit

Permalink
auto
Browse files Browse the repository at this point in the history
  • Loading branch information
A-J-Bauer committed Mar 1, 2024
1 parent 8155723 commit 231135b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/MinifyVersionPublishToFolder/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static void Main(string[] args)
else
{
Echo.Notice.WriteLine($"Minified {filename}, version={version} to {args[1]}, added sha384 hash to {Path.GetFileName(integrityfilepath)}");
Environment.SetEnvironmentVariable("GITHUB_OUTPUT", "4711");
Environment.SetEnvironmentVariable("GITHUB_OUTPUT", $"version={version}");
}

Environment.Exit(error ? 1 : 0);
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
version: ${{ steps.step2.version }}
steps:
- id: step1
name: checkout
name: Checkout
uses: actions/checkout@v4

- id: step2
name: parse file, read version, check if exists in dist, if not write file and minified version to dist
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

- id: step3
name: add commit and push
name: Add commit and push
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
Expand All @@ -29,7 +29,8 @@ jobs:
runs-on: ubuntu-latest
needs: publish
steps:
- env:
- name: release
env:
VERSION: ${{needs.publish.outputs.version}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
Expand Down
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 231135b

Please sign in to comment.