• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

samsmithnz / GitHubActionsDotNet / 7900757945

14 Feb 2024 11:53AM CUT coverage: 76.33%. Remained the same
7900757945

Pull #133

github

web-flow
Merge 652e32ffc into 5ca82b379
Pull Request #133: Bump the core group in /src/GitHubActionsDotNet with 1 update

144 of 222 branches covered (64.86%)

Branch coverage included in aggregate %.

559 of 699 relevant lines covered (79.97%)

13.88 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.62
/src/GitHubActionsDotNet/Helpers/GitHubStepHelper.cs
1
using GitHubActionsDotNet.Models;
2
using System.Collections.Generic;
3

4
namespace GitHubActionsDotNet.Helpers
5
{
6
    public static class GitHubStepHelper
7
    {
8
        //- name: Create Release
9
        //  uses: ncipollo/release-action@v1
10
        //  if: needs.build.outputs.CommitsSinceVersionSource > 0
11
        //  with:
12
        //    tag: "v${{ needs.build.outputs.Version }}"
13
        //    name: "v${{ needs.build.outputs.Version }}"
14
        //    token: ${{ secrets.GITHUB_TOKEN }}
15
        public static Step AddCreateReleaseStep(string name = null,
16
            string tagName = null,
17
            string releaseName = null,
18
            string _if = null,
19
            Dictionary<string, string> env = null)
20
        {
21
            if (name == null)
1!
22
            {
23
                name = "Create Release";
×
24
            }
25
            Step step = BaseStep.AddBaseStep(name, _if, env);
1✔
26
            step.uses = "ncipollo/release-action@v1";
1✔
27
            step.with = new Dictionary<string, string>
1✔
28
            {
1✔
29
                { "tag_name", tagName },
1✔
30
                { "release_name", releaseName },
1✔
31
                { "token", "${{ secrets.GITHUB_TOKEN }}" }
1✔
32
            };
1✔
33
            return step;
1✔
34
        }
35

36
    }
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc