Skip to content

Commit

Permalink
Replace with git module directly since its in allowlist
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Jan 24, 2021
1 parent 36e4bf1 commit c167c98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
1 change: 0 additions & 1 deletion .github/actions/cancel-workflow-action
Submodule cancel-workflow-action deleted from ce1774
16 changes: 5 additions & 11 deletions .github/workflows/cancel_duplicates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,13 @@ jobs:
jq ".total_count")
echo "Found $count unfinished jobs."
echo "::set-output name=count::$count"
if [[ $count -gt 20 ]]; then
echo "will cancel duplicates.."
exit 0
if [[ $count -lt 20 ]]; then
echo "Less than 20 pending workflows runs, skip cancelling..."
exit 1
fi
exit 1
echo "will cancel duplicates.."
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v2
with:
persist-credentials: false
submodules: recursive

- uses: ./.github/actions/cancel-workflow-runs/
- uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738
name: "Cancel duplicate workflow runs"
with:
cancelMode: allDuplicates
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
[submodule ".github/actions/file-changes-action"]
path = .github/actions/file-changes-action
url = https://github.com/trilom/file-changes-action
[submodule ".github/actions/cancel-workflow-action"]
path = .github/actions/cancel-workflow-action
url = https://github.com/styfle/cancel-workflow-action
[submodule ".github/actions/cached-dependencies"]
path = .github/actions/cached-dependencies
url = https://github.com/apache-superset/cached-dependencies
Expand Down

0 comments on commit c167c98

Please sign in to comment.