Skip to content

chore(ci): Update workflows to make v2 the default #1888

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

Merged
merged 4 commits into from
Jun 13, 2025
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
9 changes: 0 additions & 9 deletions .github/auto_assign-issues.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ on:
push:
branches:
- main
- v2
paths: # add other modules when there are under e2e tests
- 'powertools-batch/**'
- 'powertools-core/**'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/check-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
push:
branches:
- main
- v2
paths: # add other modules when there are under e2e tests
- 'powertools-batch/**'
- 'powertools-core/**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-spotbugs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
on:
pull_request:
branches:
- v2
- main
paths:
- 'powertools-batch/**'
- 'powertools-core/**'
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@ name: Release Drafter
run-name: Release Drafter

jobs:
<<<<<<< HEAD
update_release_draft:
runs-on: ubuntu-latest
=======
update_release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
>>>>>>> 4a17172a (chore(automation): Update automation workflows (#1779))
steps:
- name: Relase Drafter
uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
- id: base
name: Base
run: |
echo build_version=$(test ${{ github.ref_name }} == "v2" && echo "v2" || echo "v1") >> $GITHUB_OUTPUT
echo build_version=$(test ${{ github.ref_name }} == "main" && echo "v2" || echo "v1") >> $GITHUB_OUTPUT
- id: build_matrix_v1
name: Build matrix (v1)
if: ${{ steps.base.outputs.build_version == 'v1' }}
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
retention-days: 1

quality:
runs-on: ubuntu-latest
runs-on: aws-powertools_ubuntu-latest_8-core
needs:
- version_seal
if: ${{ inputs.skip_checks == false }}
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
uploadSarifReport: false

build:
runs-on: ubuntu-latest
runs-on: aws-powertools_ubuntu-latest_8-core
needs:
- setup
- quality
Expand All @@ -183,8 +183,8 @@ jobs:
mvn -B install --file pom.xml

publish:
runs-on: ubuntu-latest
if: ${{ github.repository == 'aws-powertools/powertools-lambda-java' && inputs.skip_publish == false }}
runs-on: aws-powertools_ubuntu-latest_8-core
if: ${{ github.repository == 'aws-powertools/powertools-lambda-java' && inputs.skip_publish == false && always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
needs:
- build
environment: Release
Expand Down Expand Up @@ -254,11 +254,10 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: tag
name: Create release
name: Create tag
run: |
gh release create v${{ inputs.version }} --target $(git rev-parse HEAD)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
git tag -a v${{ inputs.version }} -m "Release v${{ inputs.version }}"
git push origin v${{ inputs.version }}

docs:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security-branch-protections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
# List of branches we want to monitor for protection changes
branch:
- main
- v2
- v1
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'aws-powertools/powertools-lambda-java' }}
permissions:
pull-requests: read
pull-requests: write
steps:
- id: dependabot-metadata
name: Fetch Dependabot metadata
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/security-osv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ on:
pull_request:
branches:
- main
- v2
workflow_dispatch: {}
schedule:
- cron: "30 12 * * 1"
push:
branches:
- main
- v2

name: OpenSource Vulnerability Scanner
run-name: OpenSource Vulnerability Scanner
Expand Down
Loading