Skip to content

Commit

Permalink
update organization level ci-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jun 30, 2023
1 parent c9511fe commit 31253de
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 9 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: TagBot
on:
issue_comment:
types:
- created
workflow_dispatch:
inputs:
lookback:
default: 3
permissions:
actions: read
checks: read
contents: write
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.RELEASE_TOKEN }}
20 changes: 11 additions & 9 deletions .github/workflows/julia_ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Julia CI/CD

on:
issue_comment:
types: ["created"]
schedule:
- cron: 0 0 * * *
push:
Expand All @@ -11,9 +9,17 @@ on:
pull_request:
workflow_dispatch:
inputs:
action:
description: "Action"
required: true
default: "test"
type: choice
options:
- test
- release
version:
description: "Tag and release version:"
required: true
required: false

permissions:
actions: read
Expand All @@ -31,18 +37,14 @@ permissions:

jobs:
CI:
if: github.event_name == 'pull_request' || github.event_name == 'push'
if: github.event_name == 'pull_request' || github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.action == 'test')
uses: AlgebraicJulia/.github/.github/workflows/julia_ci.yml@main
secrets: inherit
CompatHelper:
if: github.event_name == 'schedule'
uses: AlgebraicJulia/.github/.github/workflows/julia_compat.yml@main
secrets: inherit
Release:
if: github.event_name == 'workflow_dispatch'
if: github.event_name == 'workflow_dispatch' && inputs.action == 'release' && inputs.version != ''
uses: AlgebraicJulia/.github/.github/workflows/julia_release.yml@main
secrets: inherit
TagBot:
if: github.event_name == 'issue_comment'
uses: AlgebraicJulia/.github/.github/workflows/julia_tag.yml@main
secrets: inherit

0 comments on commit 31253de

Please sign in to comment.