-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0b6c83
commit f128459
Showing
4 changed files
with
68 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,28 +14,44 @@ on: | |
|
||
permissions: | ||
packages: read | ||
contents: write | ||
pull-requests: write | ||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
vendor-update-check: | ||
name: Check for Vendor Updates | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/frc5572/workflows/vendor-update:${{ inputs.version }} | ||
steps: | ||
steps: | ||
- name: Update Git | ||
run: | | ||
apk update && apk add git --update-cache | ||
- name: Generate a token | ||
id: app-token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ vars.VENDOR_UPDATE_APP_ID }} | ||
private-key: ${{ secrets.VENDOR_UPDATE_PRIVATE_KEY }} | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Run Update check | ||
with: | ||
token: ${{ steps.app-token.outputs.token }} | ||
persist-credentials: false | ||
- name: Get GitHub App User ID | ||
id: get-user-id | ||
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT" | ||
env: | ||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | ||
- name: Setup GIT | ||
run: | | ||
git config --system --add safe.directory "*" | ||
git config --system user.name "Vendor Updater" | ||
git config --system user.email "[email protected]" | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | ||
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]' | ||
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com' | ||
git remote set-url origin https://x-access-token:${{ env.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | ||
env: | ||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | ||
- name: Run Update check | ||
run: | | ||
python /app/vendor-update.py | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | ||
BASE_BRANCH: ${{ inputs.base_branch }} | ||
REPO_PATH: ${{ github.repository }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "explicit" | ||
}, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnPaste": true, | ||
"terminal.integrated.defaultProfile.windows": "Git Bash" | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "explicit" | ||
}, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnPaste": true, | ||
"terminal.integrated.defaultProfile.windows": "Git Bash", | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# SUMMARY | ||
The following vendor dependencies have been updated. | ||
|
||
| Vendor | Change | | ||
|---|---| | ||
{% for item in deps -%} | ||
| {{ item.name }} | {{ item.old_version }} -> {{ item.new_version }} | | ||
{% endfor %} | ||
{% endfor %} | ||
|
||
- [ ] This PR has been deployed and tested to the robot to confirm functionality? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters