mirror of
https://github.com/darwincereska/homebrew-software.git
synced 2026-02-12 04:04:41 -05:00
fix workflow
This commit is contained in:
20
.github/workflows/bump-apprenticevr.yml
vendored
20
.github/workflows/bump-apprenticevr.yml
vendored
@@ -29,20 +29,12 @@ jobs:
|
|||||||
core.setOutput("version", cleanVersion);
|
core.setOutput("version", cleanVersion);
|
||||||
core.setOutput("tag_name", version);
|
core.setOutput("tag_name", version);
|
||||||
|
|
||||||
// Check if assets exist
|
// Construct the expected filename and URL
|
||||||
const assets = release.data.assets;
|
const expectedFilename = `apprenticevr-${cleanVersion}-arm64.dmg`;
|
||||||
const armAsset = assets.find(asset =>
|
const downloadUrl = `https://github.com/jimzrt/apprenticeVr/releases/download/${version}/${expectedFilename}`;
|
||||||
asset.name.includes('arm64.dmg') ||
|
|
||||||
asset.name.includes('arm64')
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!armAsset) {
|
core.setOutput("download_url", downloadUrl);
|
||||||
core.setFailed('No ARM64 DMG asset found in latest release');
|
core.setOutput("asset_name", expectedFilename);
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
core.setOutput("download_url", armAsset.browser_download_url);
|
|
||||||
core.setOutput("asset_name", armAsset.name);
|
|
||||||
|
|
||||||
- name: Download DMG and compute SHA256
|
- name: Download DMG and compute SHA256
|
||||||
id: compute
|
id: compute
|
||||||
@@ -108,7 +100,7 @@ jobs:
|
|||||||
|
|
||||||
if ! git diff --cached --quiet; then
|
if ! git diff --cached --quiet; then
|
||||||
VERSION="${{ steps.fetch.outputs.version }}"
|
VERSION="${{ steps.fetch.outputs.version }}"
|
||||||
git commit -m "bump: Updated apprenticevr to $VERSION"
|
git commit -m "bump: Updated apprenticeVr to $VERSION"
|
||||||
git push
|
git push
|
||||||
echo "Successfully updated apprenticevr cask to version $VERSION"
|
echo "Successfully updated apprenticevr cask to version $VERSION"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user