mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-05 06:25:08 +09:00
chore: automatic major version tagging (#1565)
* Update release-please.yml to auto-update version tag * chore: configure release-please auto floating tag --------- Co-authored-by: Tom Keller <kellertk@amazon.com>
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
${{ secrets.OSDS_PACKAGING_ROLE }}
|
${{ secrets.OSDS_PACKAGING_ROLE }}
|
||||||
|
|
||||||
- name: Run release-please
|
- name: Run release-please
|
||||||
|
id: release
|
||||||
uses: googleapis/release-please-action@v4
|
uses: googleapis/release-please-action@v4
|
||||||
with:
|
with:
|
||||||
release-type: node
|
release-type: node
|
||||||
@@ -43,3 +44,19 @@
|
|||||||
config-file: release-please-config.json
|
config-file: release-please-config.json
|
||||||
manifest-file: .release-please-manifest.json
|
manifest-file: .release-please-manifest.json
|
||||||
|
|
||||||
|
- name: Checkout Again
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Tag Major Version
|
||||||
|
if: ${{ steps.release.outputs.release_created }}
|
||||||
|
run: |
|
||||||
|
git config user.name "GitHub Actions"
|
||||||
|
git config user.email "github-aws-sdk-osds-automation@amazon.com
|
||||||
|
if git rev-parse "v${{ steps.release.outputs.major }}" >/dev/null 2>&1; then
|
||||||
|
git tag -d "v${{ steps.release.outputs.major }}"
|
||||||
|
git push origin ":v${{ steps.release.outputs.major }}"
|
||||||
|
fi
|
||||||
|
git tag -a "v${{ steps.release.outputs.major }}" -m "Release v${{ steps.release.outputs.major }}"
|
||||||
|
git push origin "v${{ steps.release.outputs.major }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user