Skip to content

Commit 695756a

Browse files
committed
fix: fix build
1 parent ab734bf commit 695756a

1 file changed

Lines changed: 39 additions & 38 deletions

File tree

.github/workflows/release.yml

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
persist-credentials: false
2020
fetch-depth: 0
2121

22+
2223
- name: Cache Gradle
2324
uses: burrunan/gradle-cache-action@v1
2425

@@ -47,41 +48,41 @@ jobs:
4748
id: semantic_release
4849
env:
4950
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN}}
50-
run: |
51-
output=$(npm exec semantic-release)
52-
version=$(echo "$output" | grep -oP '(?<=Published version: )\d+\.\d+\.\d+')
53-
echo "::set-output name=version::$version"
54-
55-
- name: Update Bundle
56-
if: startsWith(github.ref, 'refs/heads/main') # Safer condition
57-
run: |
58-
version=${{ steps.semantic_release.outputs.version }}
59-
patches_asset_url="https://github.com/indrastorms/Dropped-Patches/releases/latest/download/patches-${version}.rvp"
60-
signature_download_url="https://github.com/indrastorms/Dropped-Patches/releases/latest/download/patches-${version}.rvp.asc"
61-
62-
info_dict=$(cat <<EOF
63-
{
64-
"created_at": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")",
65-
"description": "Release version ${version}",
66-
"download_url": "${patches_asset_url}",
67-
"signature_download_url": "${signature_download_url}",
68-
"version": "${version}"
69-
}
70-
EOF
71-
)
72-
73-
echo "bundle_file=dropped-patches-bundle.json" >> $GITHUB_ENV
74-
echo "$info_dict" > "${{ env.bundle_file }}"
75-
echo "Latest release information saved to ${{ env.bundle_file }}"
76-
77-
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
78-
git config --local user.name "github-actions[bot]"
79-
git add ${{ env.bundle_file }}
80-
git commit -m "update ${{ env.bundle_file }} [skip ci]"
81-
82-
- name: Push changes
83-
if: startsWith(github.ref, 'refs/heads/main') # Ensure this matches the main branch condition
84-
uses: ad-m/github-push-action@master
85-
with:
86-
github_token: ${{ secrets.GIT_TOKEN }}
87-
branch: main
51+
run: npm exec semantic-release
52+
# output=$(npm exec semantic-release)
53+
# version=$(echo "$output" | grep -oP '(?<=Published version: )\d+\.\d+\.\d+')
54+
# echo "::set-output name=version::$version"
55+
#
56+
# - name: Update Bundle
57+
# if: startsWith(github.ref, 'refs/heads/main') # Safer condition
58+
# run: |
59+
# version=${{ steps.semantic_release.outputs.version }}
60+
# patches_asset_url="https://github.com/indrastorms/Dropped-Patches/releases/latest/download/patches-${version}.rvp"
61+
# signature_download_url="https://github.com/indrastorms/Dropped-Patches/releases/latest/download/patches-${version}.rvp.asc"
62+
#
63+
# info_dict=$(cat <<EOF
64+
# {
65+
# "created_at": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")",
66+
# "description": "Release version ${version}",
67+
# "download_url": "${patches_asset_url}",
68+
# "signature_download_url": "${signature_download_url}",
69+
# "version": "${version}"
70+
# }
71+
# EOF
72+
# )
73+
#
74+
# echo "bundle_file=dropped-patches-bundle.json" >> $GITHUB_ENV
75+
# echo "$info_dict" > "${{ env.bundle_file }}"
76+
# echo "Latest release information saved to ${{ env.bundle_file }}"
77+
#
78+
# git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
79+
# git config --local user.name "github-actions[bot]"
80+
# git add ${{ env.bundle_file }}
81+
# git commit -m "update ${{ env.bundle_file }} [skip ci]"
82+
#
83+
# - name: Push changes
84+
# if: startsWith(github.ref, 'refs/heads/main') # Ensure this matches the main branch condition
85+
# uses: ad-m/github-push-action@master
86+
# with:
87+
# github_token: ${{ secrets.GIT_TOKEN }}
88+
# branch: main

0 commit comments

Comments
 (0)