diff --git a/.github/workflows/FormatCheck.yml b/.github/workflows/FormatCheck.yml index 44f35579..3c290ead 100644 --- a/.github/workflows/FormatCheck.yml +++ b/.github/workflows/FormatCheck.yml @@ -1,10 +1,15 @@ name: "Format Check" on: - push: - branches: - - "main" - tags: "*" - pull_request: ~ + pull_request_target: + types: + - "opened" + - "synchronize" + - "reopened" + - "ready_for_review" +permissions: + contents: "read" + actions: "write" + pull-requests: "write" jobs: format-check: name: "Format Check" diff --git a/.github/workflows/FormatPullRequest.yml b/.github/workflows/FormatPullRequest.yml new file mode 100644 index 00000000..b9a329c7 --- /dev/null +++ b/.github/workflows/FormatPullRequest.yml @@ -0,0 +1,12 @@ +name: "Format Pull Request" +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: ~ +permissions: + contents: "write" + pull-requests: "write" +jobs: + format-pull-request: + name: "Format Pull Request" + uses: "ITensor/ITensorActions/.github/workflows/FormatPullRequest.yml@main" diff --git a/.github/workflows/Registrator.yml b/.github/workflows/Registrator.yml index 00a7dd2d..00bf06c1 100644 --- a/.github/workflows/Registrator.yml +++ b/.github/workflows/Registrator.yml @@ -1,20 +1,17 @@ name: "Register Package" on: workflow_dispatch: ~ - pull_request: - types: - - "closed" - paths: - - "Project.toml" + push: branches: - "master" - "main" + paths: + - "Project.toml" permissions: contents: "write" pull-requests: "write" jobs: Register: - if: "github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true" uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@main" with: localregistry: "ITensor/ITensorRegistry" diff --git a/.github/workflows/VersionCheck.yml b/.github/workflows/VersionCheck.yml new file mode 100644 index 00000000..bb0df888 --- /dev/null +++ b/.github/workflows/VersionCheck.yml @@ -0,0 +1,9 @@ +name: "Version Check" +on: + pull_request: ~ +jobs: + version-check: + name: "Version Check" + uses: "ITensor/ITensorActions/.github/workflows/VersionCheck.yml@main" + with: + localregistry: "https://github.com/ITensor/ITensorRegistry.git" diff --git a/Project.toml b/Project.toml index 7bf99aea..219df7fe 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "ITensorDocs" uuid = "421c5ee2-4dae-4799-bb38-a6a9d9332403" -version = "0.1.6" +version = "0.1.7" authors = ["ITensor developers and contributors"] [compat]