-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #479 from PrefectHQ/chore/eslint-config-upgrade
chore: Upgrade latest eslint-config package upon upstream eslint update
- Loading branch information
Showing
1 changed file
with
63 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
name: Update to latest Prefect Packages | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
package_name: | ||
description: The name of the Prefect package to update | ||
required: true | ||
package_version: | ||
description: The version of the Prefect package to update | ||
required: true | ||
permissions: {} | ||
|
||
jobs: | ||
update_prefect_packages: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# required to write to the repo | ||
contents: write | ||
# required to open a pr with prefect ui changes | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: create branch for dependency version updates | ||
run: git checkout -b "prefect-package-${{ inputs.package_name }}-${{ inputs.package_version }}-update" | ||
|
||
- name: Setup NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Upgrade Package | ||
run: | | ||
npm i @${{ inputs.package_name }}@${{ inputs.package_version }} --save-exact | ||
- name: Commit Package changes | ||
run: | | ||
git add . | ||
git commit -m "Update @${{ inputs.package_name }} to version ${{ inputs.package_version }}" | ||
git push --set-upstream origin "prefect-package-${{ inputs.package_name }}-${{ inputs.package_version }}-update" | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Create Pull Request | ||
run: | | ||
git checkout "prefect-package-${{ inputs.package_name }}-${{ inputs.package_version }}-update" | ||
gh pr create \ | ||
--base main \ | ||
--title "Update @${{ inputs.package_name }} to version ${{ inputs.package_version }}" \ | ||
--body "Update @${{ inputs.package_name }} to version ${{ inputs.package_version }}. | ||
Release information can be found at https://github.com/${{ inputs.package_name }}/releases/tag/${{ inputs.package_version }}." \ | ||
--label maintenance | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} |