Skip to content

Commit

Permalink
Fixed missing properties for pull request build.
Browse files Browse the repository at this point in the history
  • Loading branch information
hubuk committed Apr 24, 2024
1 parent 0ce0ca6 commit 91238f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
const { default: createGitTag } = await import('${{ github.workspace }}/scripts/createGitTag.mjs');
await createGitTag(github, context);
- name: Fetch tag
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
run: git fetch --tags
Expand Down Expand Up @@ -64,3 +65,6 @@ jobs:
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
action: "close"
app_location: "/"
api_location: ""
output_location: "build"
8 changes: 2 additions & 6 deletions scripts/common/git.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ export async function getCurrentBranchNameAsync() {
}

export async function isWorkingDirectoryDirtyAsync() {
try {
await executeCommandAsync('git diff-index --quiet HEAD --');
return false;
} catch {
return true;
}
const status = await executeCommandAsync('git status --porcelain');
return status.trim() !== '';
}

0 comments on commit 91238f7

Please sign in to comment.