Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Commit

Permalink
ci: better content workflow (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerFi authored Mar 9, 2021
1 parent 2370d24 commit 76cf45f
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/pr_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ jobs:
configuration-path: ".github/configs/content_labels.yml"
sync-labels: true

- name: Label if conflicts
uses: eps1lon/actions-label-merge-conflict@releases/2.x
- name: Label if conflicts found
uses: mschilde/auto-label-merge-conflicts@v2.0
with:
dirtyLabel: "status: has conflicts"
removeOnDirtyLabel: "status: needs review"
repoToken: ${{ secrets.GITHUB_TOKEN }}
CONFLICT_LABEL_NAME: "status: has conflicts"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get pull request size
if: github.repository_owner == 'TomerFi' # workaround disabling for forks
Expand Down Expand Up @@ -60,19 +59,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: ${{ steps.pr_size.outputs.new_label }}

content-warning:
runs-on: ubuntu-latest
name: Content warnings
steps:
- name: Source checkout
uses: actions/checkout@v2.3.4

- name: Warn for potential conflicts
uses: outsideris/potential-conflicts-checker-action@0.1.0
with:
ghToken: ${{ secrets.GITHUB_TOKEN }}

- name: Warn for large files
- name: Label if contains large files # builtin label: "lfs-detected!"
uses: actionsdesk/lfs-warning@v2.0
with:
filesizelimit: '5242880'

0 comments on commit 76cf45f

Please sign in to comment.