-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #732 from iron-fish/rahul/change-index-job-to-run-…
…on-push Change workflow trigger to run after PR merge
- Loading branch information
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Update Search Index | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
|
@@ -31,13 +31,21 @@ jobs: | |
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
- name: Skip Duplicate Actions | ||
id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
cancel_others: 'true' | ||
concurrent_skipping: 'outdated_runs' | ||
|
||
- name: Extract Branch Name | ||
id: extract_branch | ||
shell: bash | ||
run: | | ||
echo "::set-output name=branch::${{ github.head_ref }}" | ||
- name: Commit and Push Search Index Updates | ||
if: steps.skip_check.outputs.should_skip != 'true' # Only run if not skipped | ||
run: | | ||
git add -A | ||
git commit -m "Update search index" || echo "No changes to commit" | ||
|