Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task(SDK-3703) - Update Mandatory file changes to allow merge from de… #580

Merged
merged 2 commits into from
Mar 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/mini_flows/mandatory_filechanges/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ runs:
id: filter
with:
filters: |
md: ['CHANGELOG.md']
src: ['clevertap-core/src/**', 'clevertap-geofence/src/**', 'clevertap-hms/src/**', 'clevertap-pushtemplates/src/**']
mainChangelog: ['CHANGELOG.md']
version: ['gradle/libs.versions.toml']
docsChangelog: ['docs/CTCORECHANGELOG.md', 'docs/CTGEOFENCECHANGELOG.md', 'docs/CTHUAWEIPUSHCHANGELOG.md', 'docs/CTPUSHTEMPLATESCHANGELOG.md']
templatesChangelog: ['templates/CTCORECHANGELOG.md', 'templates/CTGEOFENCECHANGELOG.md', 'templates/CTHUAWEIPUSHCHANGELOG.md', 'templates/CTPUSHTEMPLATESCHANGELOG.md']

- name: FAIL if mandatory files are not changed
if: ${{ steps.filter.outputs.md == 'false' }}
- name: FAIL if src files are changed but release files are not updated
if: ${{ steps.filter.outputs.src == 'true' &&
(steps.filter.outputs.mainChangelog == 'false' || steps.filter.outputs.version == 'false' ||
steps.filter.outputs.docsChangelog == 'false' || steps.filter.outputs.templatesChangelog == 'false') }}
uses: actions/github-script@v3
with:
script: |
core.setFailed('Mandatory markdown files were not changed')
core.setFailed('Mandatory release files or versions were not changed')
Loading