Skip to content

Commit

Permalink
fix: change default value of fail_on_events_api_error to true (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Dec 8, 2023
1 parent 14f7769 commit e188d2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ jobs:
uses: ./
with:
changelog_path: ./tests/data/set${{ matrix.set }}/CHANGELOG.md
fail_on_events_api_error: false
fail_on_events_api_error: # PRs will fail if this is true
${{ github.event_name == 'pull_request' && 'false' || 'true' }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Print action outputs
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The action does the following:
|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|----------------|----------|
| changelog_path | The path to the changelog file | `CHANGELOG.md` | `false` |
| dotnet | Whether to create a dotnet version (4 components, e.g. yyyy.mmdd.hhmm.ss). | `false` | `false` |
| fail_on_events_api_error | Fail if the action cannot find this commit in the events API | `false` | `false` |
| fail_on_events_api_error | Fail if the action cannot find this commit in the events API | `true` | `false` |
| github_token | The GitHub token to use for API calls | | `true` |
| include_tag_prefix_in_output | Whether to include the tag prefix in the output. | `true` | `false` |
| tag_prefix | The tag prefix. This will be used when searching for existing releases in GitHub API. This should not be included in the version within the changelog. | `v` | `false` |
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ inputs:
required: false
fail_on_events_api_error:
description: "Whether to fail if the GitHub Events API returns an error."
default: 'false'
default: 'true'
required: false
github_token:
description: "GitHub token to use for API requests."
Expand Down

0 comments on commit e188d2c

Please sign in to comment.