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

Commit

Permalink
make trunk available on all repos
Browse files Browse the repository at this point in the history
  • Loading branch information
Sualeh Asif committed Jun 16, 2022
1 parent dc17fe6 commit 74157db
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Nightly
on:
schedule:
- cron: 0 8 * * 1-7
workflow_dispatch: {}

jobs:
trunk_check:
name: Trunk Check Upload
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Trunk Check
uses: trunk-io/trunk-action@v1
with:
trunk-token: ${{ secrets.ASPHR_TRUNK_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pull Request
on: pull_request

concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true

jobs:
trunk_check:
name: Trunk Check Runner
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Trunk Check
uses: trunk-io/trunk-action@v1
26 changes: 26 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: "42 3 * * *"

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "Stale issue message"
stale-pr-message: "Stale pull request message"
stale-issue-label: "no-issue-activity"
stale-pr-label: "no-pr-activity"

0 comments on commit 74157db

Please sign in to comment.