Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update v0 to v0.1.6 #9

Merged
merged 4 commits into from
May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,26 @@ on:
- v0

jobs:
test_action:
name: Run
test_action_with_version:
name: Run the action with the version
runs-on: ubuntu-latest

steps:
- name: Get GITHUB_TOKEN for Github Apps
uses: nabeken/go-github-apps@v0
id: go-github-apps
with:
installation_id: ${{ secrets.installation_id }}
app_id: ${{ secrets.app_id }}
private_key: ${{ secrets.private_key }}
version: "0.1.6"

- name: Test Github API call
run: |
curl --fail -H 'Authorization: token ${{ steps.go-github-apps.outputs.app_github_token }}' https://api.github.com/

test_action_with_default:
name: Run the action with the default version
runs-on: ubuntu-latest

steps:
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,13 @@ Example:
run: |
curl --fail -H 'Authorization: token ${{ steps.go-github-apps.outputs.app_github_token }}' https://api.github.com/
```
## Release
- Just tag a new release as usual
- To update the default version in the action, you need to update `v0` tag.
- Create a branch that update "version" in the Github Actions (not the default version)
- Create a PR to confirm that the new release works
- Update the branch to update *the default version* in the `action.yml`
- Merge the PR
- Tag `v0`
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
inputs:
version:
description: "A version to install"
default: "0.1.5"
default: "0.1.6"
installation_id:
description: "Github Apps Installation ID"
app_id:
Expand Down