Skip to content

Commit

Permalink
Remove snapshot tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoet-jh committed May 17, 2024
1 parent d993a2c commit fde58f7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
9 changes: 8 additions & 1 deletion .github/actions/yarn-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ inputs:
repository_dir:
description: 'Directory of repository to update'
required: true
skip_tag:
description: 'Skip git tag'
required: false
default: "false"

runs:
using: composite
Expand All @@ -20,4 +24,7 @@ runs:
yarn config set version-git-tag false
yarn version --new-version $RELEASE
git commit --allow-empty -am "Update version to $RELEASE"
git tag --force $RELEASE_TAG
if [ "$SKIP_TAG" == "false" ]; then
echo "Tagging yarn version $RELEASE"
git tag $RELEASE
fi
26 changes: 11 additions & 15 deletions .github/workflows/pass-complete-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
env:
RELEASE: ${{ inputs.releaseversion }}
NEXT: ${{ inputs.nextversion }}
NEXT_TAG: ${{ inputs.nextversion }}-init
steps:
- name: Checkout main
uses: actions/checkout@v4
Expand Down Expand Up @@ -143,7 +142,6 @@ jobs:
repository_dir: combined/pass-ui
env:
RELEASE: ${{ env.RELEASE }}
RELEASE_TAG: ${{ env.RELEASE }}

- name: Build Release pass-ui
if: ${{ ! env.PASS_UI_TAG_EXISTS }}
Expand Down Expand Up @@ -173,7 +171,6 @@ jobs:
repository_dir: combined/pass-acceptance-testing
env:
RELEASE: ${{ env.RELEASE }}
RELEASE_TAG: ${{ env.RELEASE }}

- name: Push the Release commits and tags ~ pass-acceptance-testing
if: ${{ ! env.PASS_ACCPT_TEST_TAG_EXISTS }}
Expand Down Expand Up @@ -216,10 +213,10 @@ jobs:

- name: Set Snapshot/commit ~ Java Repositories
run: |
(cd main && mvn versions:set -B -ntp -DallowSnapshots=true -DnewVersion=$NEXT && git commit --allow-empty -am "Update version to $NEXT" && git tag --force $NEXT_TAG)
(cd main && mvn versions:set -B -ntp -DallowSnapshots=true -DnewVersion=$NEXT && git commit --allow-empty -am "Update version to $NEXT")
(cd combined && mvn versions:set -B -ntp -DallowSnapshots=true -DnewVersion=$NEXT)
(cd combined/pass-core && git commit --allow-empty -am "Update version to $NEXT" && git tag --force $NEXT_TAG)
(cd combined/pass-support && git commit --allow-empty -am "Update version to $NEXT" && git tag --force $NEXT_TAG)
(cd combined/pass-core && git commit --allow-empty -am "Update version to $NEXT")
(cd combined/pass-support && git commit --allow-empty -am "Update version to $NEXT")
- name: Release Snapshot Java modules
working-directory: combined
Expand All @@ -241,17 +238,17 @@ jobs:
- name: Push the Snapshot commits ~ Java Repositories
run: |
(cd main && git push --atomic origin main --force $NEXT_TAG)
(cd combined/pass-core && git push --atomic origin main --force $NEXT_TAG)
(cd combined/pass-support && git push --atomic origin main --force $NEXT_TAG)
(cd main && git push origin main)
(cd combined/pass-core && git push origin main)
(cd combined/pass-support && git push origin main)
- name: Set Snapshot/commit ~ pass-ui
uses: ./main/.github/actions/yarn-version
with:
repository_dir: combined/pass-ui
skip_tag: "true"
env:
RELEASE: ${{ env.NEXT }}
RELEASE_TAG: ${{ env.NEXT_TAG }}

- name: Build Snapshot pass-ui
uses: ./main/.github/actions/yarn-build
Expand All @@ -264,25 +261,24 @@ jobs:
run: docker push ghcr.io/eclipse-pass/pass-ui:$NEXT

- name: Push the Snapshot commits ~ pass-ui
run: cd combined/pass-ui && git push --atomic origin main --force $NEXT_TAG
run: cd combined/pass-ui && git push origin main

- name: Set Snapshot/commit ~ pass-acceptance-testing
uses: ./main/.github/actions/yarn-version
with:
repository_dir: combined/pass-acceptance-testing
skip_tag: "true"
env:
RELEASE: ${{ env.NEXT }}
RELEASE_TAG: ${{ env.NEXT_TAG }}

- name: Push the Snapshot commits ~ pass-acceptance-testing
run: cd combined/pass-acceptance-testing && git push --atomic origin main --force $NEXT_TAG
run: cd combined/pass-acceptance-testing && git push origin main

- name: Set Snapshot/commit ~ pass-docker
run: |
cd combined/pass-docker
sed -i "/^PASS_VERSION/s/.*/PASS_VERSION=$NEXT/" .env
git commit --allow-empty -am "Update version to $NEXT"
git tag --force $NEXT_TAG
- name: Build Snapshot pass-docker images
working-directory: combined/pass-docker
Expand All @@ -294,4 +290,4 @@ jobs:
docker push ghcr.io/eclipse-pass/idp:$NEXT
- name: Push the Snapshot commits ~ pass-docker
run: cd combined/pass-docker && git push --atomic origin main --force $NEXT_TAG
run: cd combined/pass-docker && git push origin main

0 comments on commit fde58f7

Please sign in to comment.