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

Chore/infer github token from run #2

Merged
merged 3 commits into from
Jan 2, 2024
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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Action that runs updatecli, commits those changes if they exist, and opens a PR
## Inputs
| Input | Description | Required |
|-------|------------|----------|
| github-token | The GitHub token to use for authentication. | true |
| manifest-path | Path to the updatecli manifest file. | true |
| run-type | The type of updatecli run to perform. (major or minor) | true |

Expand Down
8 changes: 2 additions & 6 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: Run updatecli and push to git
author: PrefectHQ
description: This action will run updatecli and push the changes to git and will also open a PR
inputs:
github-token:
description: "The GitHub token to use for authentication"
default: ${{ github.token }}
required: true
manifest-path:
description: "Path to the updatecli manifest file"
default: ".github/updatecli/manifest-minor.yaml"
Expand Down Expand Up @@ -51,7 +47,7 @@ runs:
git commit -m "dependency-version-${{ inputs.run-type }}-${{ steps.date.outputs.date }}"
git push --set-upstream origin "dependency-version-${{ inputs.run-type }}-${{ steps.date.outputs.date }}"
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
GITHUB_TOKEN: ${{ github.token }}
shell: bash

- name: create pr
Expand All @@ -60,5 +56,5 @@ runs:
git checkout "dependency-version-${{ inputs.run-type }}-${{ steps.date.outputs.date }}"
gh pr create --base main --title "dependency-version-${{ inputs.run-type }}-bump-${{ steps.date.outputs.date }}" -f --label soc2
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
GITHUB_TOKEN: ${{ github.token }}
shell: bash