Skip to content

Releases: sethvargo/go-githubactions

v1.3.0

27 Aug 00:56
v1.3.0
09fc534
Compare
Choose a tag to compare

What's Changed

  • actions: added GITHUB_ACTOR_ID to Context by @giautm in #58

New Contributors

Full Changelog: v1.2.0...v1.3.0

v1.2.0

12 Jan 03:39
v1.2.0
f2efde7
Compare
Choose a tag to compare

This release updates the minimum Go version to 1.21.

What's Changed

New Contributors

Full Changelog: v1.1.0...v1.2.0

v1.1.0

12 Oct 18:28
v1.1.0
b3883e8
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0.0...v1.1.0

v1.0.0

17 May 21:41
v1.0.0
cf611d2
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.5.3...v1.0.0

v0.5.2

01 Feb 17:04
1e25ca7
Compare
Choose a tag to compare

What's Changed

  • Add missing noun by @AlekSi in #34
  • Fix SetEnv overwriting the result of the previous call by @mtharp in #36

New Contributors

Full Changelog: v0.5.1...v0.5.2

v0.5.1

29 Dec 17:57
e5e41f9
Compare
Choose a tag to compare

What's Changed

  • Remove duplicate package description. by @AlekSi in #30
  • Mirror actions/toolkit on newline handling, emit \r\n on Windows by @sethvargo in #33

New Contributors

Full Changelog: v0.5.0...v0.5.1

v0.5.0

12 Nov 16:26
a712c2e
Compare
Choose a tag to compare

What's Changed'

  • Add support for getting OIDC token by @sethvargo in #28
  • Adding tests to get actions.go and command.go to 100% test coverage. by @dhermes in #22
  • Fix wrong badge by @ribice in #26
  • Pass along getenv in Action.WithFieldsMap(). by @dhermes in #27

New Contributors

Full Changelog: v0.4.0...v0.5.0

v0.4.0

21 Apr 16:38
fb5dddc
Compare
Choose a tag to compare
Add `Action.getenv` and use variadic options in `New()`. (#19)

* Adding `Action` options.

* Using options in `New()`.

* Adding `Action.getenv` and `OptGetEnv` helper.

* Adding godoc for `Opt*()` helpers.

* Adding `getenv` default in `New()`.

* Replacing `os.Getenv` usage with `Action.getenv`.

* Ditching `Action.setEnv` in favor of using `OptGetenv`.

* Ditching `Action.addPath` in favor of using `OptGetenv`.

* Ditching `Action.getInput` in favor of using `OptGetenv`.

* Ditching `Action.issueFileCommand` in favor of using `OptGetenv`.

* Ditching `NewWithWriter` in tests.

This will make it easier to deprecate `NewWithWriter` later.

* Adding test for `NewWithWriter`.

* Fix year in new `options_test.go`.

* Modifying `Option` so it also returns an `Action`.

* Adding a `nil`-guard for `opt` in `New()`.

* Adding deprecation notice to godoc for `NewWithWriter()`.

* Renaming `Opt*` to `With*` for options.

The diff was completely generated via:

```
git grep -l OptWriter | xargs sed -i '' s/OptWriter/WithWriter/g
git grep -l OptFields | xargs sed -i '' s/OptFields/WithFields/g
git grep -l OptGetenv | xargs sed -i '' s/OptGetenv/WithGetenv/g
```

so reviewing the whole diff is not necessary (if that makes code
review easier).

* Exporting `getenvFunc`.

Done via:

```
git grep -l getenvFunc | xargs sed -i '' s/getenvFunc/GetenvFunc/g
```