diff --git a/.github/workflows/pullrequest_build.yml b/.github/workflows/pullrequest_build.yml index 95b98ce..a60cfc2 100644 --- a/.github/workflows/pullrequest_build.yml +++ b/.github/workflows/pullrequest_build.yml @@ -5,9 +5,9 @@ on: branches: - dev paths-ignore: - - 'docs/*' - - '.github/*' - - '.github/workflows/*' + - 'docs/**' + - '.github/**' + - 'README.md' jobs: build: diff --git a/.github/workflows/pullrequest_release.yml b/.github/workflows/pullrequest_release.yml index 8be4833..658bf8e 100644 --- a/.github/workflows/pullrequest_release.yml +++ b/.github/workflows/pullrequest_release.yml @@ -5,6 +5,8 @@ on: types: [closed] branches: - dev + paths: + - 'force-app/**' jobs: build: @@ -41,7 +43,7 @@ jobs: # Creating a new Package version - name: Creating a new Package version run: | - JSON=$(sf package version create --target-dev-hub DevHub --package "${{ vars.SF_PKG_ID }}" --installation-key "${{ secrets.SF_PKG_INSTALL_KEY }}" --code-coverage --json --releasenotes-url "${{ vars.SF_RELEASE_NOTES_URL }}" --json --wait 20); + JSON=$(sf package version create --target-dev-hub DevHub --package ${{ vars.SF_PKG_ID }} --installation-key ${{ secrets.SF_PKG_INSTALL_KEY }} --code-coverage --json --releasenotes-url ${{ vars.SF_RELEASE_NOTES_URL }} --json --wait 20); STATUS=$(echo $JSON | jq '.result.Status'); ID=$(echo $JSON | jq -r '.result.Id');