-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.5 KB
/
release-please.yaml
File metadata and controls
44 lines (38 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
# GitHub Actions workflow to automatically release each repository of the Schrödinger's Stack organization.
#
# IMPORTANT: This workflow is called by other workflows in the organization's repositories and it is centralized here
# in order to be easily maintained. Because of this, please make sure you're not introducing any breaking changes when
# modifying this workflow.
name: "release-please"
on:
# Run when called by other workflows.
workflow_call:
secrets:
SCHTACK_RELEASER_APP_ID:
description: "App ID of the GitHub app with permissions to create PRs and modify files on the Schrödinger's Stack repositories"
required: true
SCHTACK_RELEASER_PRIVATE_KEY:
description: "PEM private key of the GitHub app with permissions to create PRs and modify files on the Schrödinger's Stack repositories"
required: true
# Run when a new issue or PR is opened or reopened in this repository.
# push:
# branches:
# - main
# Run the workflow manually
workflow_dispatch:
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Generate authentication token from GitHub App
id: app_token
uses: actions/create-github-app-token@v3.0.0
with:
app-id: ${{ secrets.SCHTACK_RELEASER_APP_ID }}
private-key: ${{ secrets.SCHTACK_RELEASER_PRIVATE_KEY }}
- name: Run Release Please
uses: googleapis/release-please-action@v4.4.0
id: release-please
with:
token: ${{ steps.app_token.outputs.token }}