Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

CI tweaks #366

Merged
merged 3 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
24 changes: 10 additions & 14 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
private-key: ${{ secrets.APP_PRIVATE_KEY }}
skip-token-revoke: true
- name: Create in progress check
uses: LouisBrunner/checks-action@v1.6.1
uses: LouisBrunner/checks-action@v2.0.0
with:
token: ${{ steps.app-token.outputs.token }}
sha: ${{ env.COMMIT_SHA }}
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Build and run PR
timeout-minutes: 60
id: build-and-run
uses: SegmentLinking/TrackLooper-actions/standalone@v1
uses: SegmentLinking/TrackLooper-actions/standalone@main
with:
pr-number: ${{ github.event.issue.number }}
- name: Upload plots to archival repo
Expand All @@ -60,7 +60,7 @@ jobs:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}
TARGET_DIR: ${{ steps.build-and-run.outputs.archive-dir }}
- name: Comment on PR
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
Expand All @@ -71,7 +71,7 @@ jobs:
})
- name: Comment on PR if job failed.
if: failure()
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
Expand All @@ -88,7 +88,7 @@ jobs:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Create completed check
uses: LouisBrunner/checks-action@v1.6.1
uses: LouisBrunner/checks-action@v2.0.0
if: always()
with:
token: ${{ steps.app-token-end.outputs.token }}
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
private-key: ${{ secrets.APP_PRIVATE_KEY }}
skip-token-revoke: true
- name: Create in progress check
uses: LouisBrunner/checks-action@v1.6.1
uses: LouisBrunner/checks-action@v2.0.0
with:
token: ${{ steps.app-token.outputs.token }}
sha: ${{ env.COMMIT_SHA }}
Expand All @@ -143,10 +143,6 @@ jobs:
# Check if there is a branch after "/run cmssw"
words=($line)
cmssw_branch="${words[2]}"
# Validate the extracted branch to avoid code injection
if [ -n "$cmssw_branch" ]; then
cmssw_branch=$(git check-ref-format --branch $cmssw_branch || echo "default")
fi
fi
done <<< "$COMMENT_BODY"
if [ -z "$cmssw_branch" ]; then
Expand All @@ -157,7 +153,7 @@ jobs:
- name: Build and run PR
timeout-minutes: 200
id: build-and-run
uses: SegmentLinking/TrackLooper-actions/cmssw@v1
uses: SegmentLinking/TrackLooper-actions/cmssw@main
with:
pr-number: ${{ github.event.issue.number }}
cmssw-branch: ${{ env.cmssw-branch }}
Expand All @@ -170,7 +166,7 @@ jobs:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}
TARGET_DIR: ${{ steps.build-and-run.outputs.archive-dir }}
- name: Comment on PR
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
Expand All @@ -181,7 +177,7 @@ jobs:
})
- name: Comment on PR if job failed.
if: failure()
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
Expand All @@ -198,7 +194,7 @@ jobs:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Create completed check
uses: LouisBrunner/checks-action@v1.6.1
uses: LouisBrunner/checks-action@v2.0.0
if: always()
with:
token: ${{ steps.app-token-end.outputs.token }}
Expand Down
Loading