Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pulpbot committed Nov 15, 2023
1 parent 5e2a94b commit e6860ff
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-255-g20bf8c0
2021.08.26-259-ge0f38f0
14 changes: 14 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ concurrency:
cancel-in-progress: true

jobs:
build:
uses: ./.github/workflows/build.yml

test:
runs-on: ubuntu-latest
needs: build

strategy:
fail-fast: false
Expand All @@ -39,6 +43,11 @@ jobs:
with:
fetch-depth: 1

- uses: actions/download-artifact@v3
with:
name: plugin_package
path: dist/

- uses: actions/setup-python@v4
with:
python-version: "3.8"
Expand Down Expand Up @@ -211,6 +220,11 @@ jobs:
with:
fetch-depth: 1

- uses: actions/download-artifact@v3
with:
name: plugin_package
path: dist/

- uses: actions/setup-python@v4
with:
python-version: "3.8"
Expand Down
29 changes: 18 additions & 11 deletions .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,33 @@ jobs:
with:
fetch-depth: 0
- name: Commit Count Check
run: echo "COMMIT_COUNT=$(git log --oneline --no-merges origin/${{ github.base_ref }}..${{ github.event.pull_request.head.sha }} | wc -l)" >> "$GITHUB_ENV"
run: |
git fetch origin ${{ github.event.pull_request.head.sha }}
echo "COMMIT_COUNT=$(git log --oneline --no-merges origin/${{ github.base_ref }}..${{ github.event.pull_request.head.sha }} | wc -l)" >> "$GITHUB_ENV"
- uses: actions/github-script@v7
with:
script: |
const { COMMIT_COUNT } = process.env
const labelName = "multi-commit";
const { COMMIT_COUNT } = process.env;
if (COMMIT_COUNT == 1)
{
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: ["multi-commit"]
})
try {
await github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: labelName,
});
} catch(err) {
}
}
else
{
github.rest.issues.addLabels({
await github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["multi-commit"]
})
labels: [labelName],
});
}
2 changes: 1 addition & 1 deletion docs/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-255-g20bf8c0
2021.08.26-259-ge0f38f0

0 comments on commit e6860ff

Please sign in to comment.