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

fix(awscli-v2): new cli versions are not released #955

Merged
merged 1 commit into from
Sep 23, 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 .github/scripts/requirements.txt

This file was deleted.

25 changes: 0 additions & 25 deletions .github/scripts/upgrade-awscli-version.py

This file was deleted.

48 changes: 21 additions & 27 deletions .github/workflows/custom-upgrade-awscli-v2-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: custom-upgrade-awscli-v2-main
on:
workflow_dispatch: {}
schedule:
- cron: 0 0 * * *
# run the upgrade weekly
- cron: 0 0 * * 5
jobs:
upgrade:
name: Upgrade
Expand All @@ -13,20 +14,15 @@ jobs:
patch_created: ${{ steps.create_patch.outputs.patch_created }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: awscli-v2/main
- name: Change permissions on /var/run/docker.sock
run: sudo chown superchain /var/run/docker.sock
- name: Install dependencies
run: yarn install --check-files --frozen-lockfile
- name: Install Python Script Dependencies
run: |
sudo apt update
sudo apt install -y jq
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Check for awscli version upgrades
run: |
cd .github/scripts
working-directory: ./.github/scripts
run: |
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
Expand All @@ -35,16 +31,13 @@ jobs:
name: Find mutations
run: |-
git add .
git diff --staged --patch --exit-code > .repo.patch || echo "::set-output name=patch_created::true"
git diff --staged --patch --exit-code > repo.patch || echo "patch_created=true" >> $GITHUB_OUTPUT
- if: steps.create_patch.outputs.patch_created
name: Upload patch
uses: actions/[email protected]
with:
name: .repo.patch
path: .repo.patch
container:
image: jsii/superchain:1-buster-slim-node18
options: --group-add sudo
name: repo.patch
path: repo.patch
pr:
name: Create Pull Request
needs: upgrade
Expand All @@ -55,35 +48,36 @@ jobs:
if: ${{ needs.upgrade.outputs.patch_created }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
ref: awscli-v2/main
- name: Download patch
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: .repo.patch
name: repo.patch
path: ${{ runner.temp }}
- name: Apply patch
run: '[ -s ${{ runner.temp }}/.repo.patch ] && git apply ${{ runner.temp }}/.repo.patch || echo "Empty patch. Skipping."'
run: '[ -s ${{ runner.temp }}/repo.patch ] && git apply ${{ runner.temp }}/repo.patch || echo "Empty patch. Skipping."'
- name: Set git identity
run: |-
git config user.name "github-actions"
git config user.email "[email protected]"
- name: Create Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
commit-message: |-
chore(deps): upgrade dependencies
Upgrades project dependencies. See details in [workflow run].
fix(deps): upgrade AWS CLI dependency
Upgrades AWS CLI dependency. See details in [workflow run].
[Workflow Run]: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
base: awscli-v2/main
branch: github-actions/upgrade-awscli-v2-main
title: "chore(deps): upgrade aws-cli dependency"
title: "fix(deps): upgrade AWS CLI dependency"
labels: auto-approve
body: |-
Upgrades project dependencies. See details in [workflow run].
Upgrades AWS CLI dependency. See details in [workflow run].
[Workflow Run]: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
author: github-actions <[email protected]>
committer: github-actions <[email protected]>
Expand Down
Loading