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

samsmithnz / GitHubActionsDotNet / 14707351366

28 Apr 2025 12:04PM CUT coverage: 76.33%. Remained the same
14707351366

push

github

web-flow
Merge pull request #173 from samsmithnz/dependabot/github_actions/core-c27c18812b

Bump gittools/actions from 3.2.0 to 3.2.1 in the core group

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