Skip to content

Commit d64b4eb

Browse files
committed
update to GH action to v2
1 parent ca15f36 commit d64b4eb

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

docs/downloads/gitstream.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
name: gitStream workflow automation
3838
steps:
3939
- name: Evaluate Rules
40-
uses: linear-b/gitstream-github-action@v1
40+
uses: linear-b/gitstream-github-action@v2
4141
id: rules-engine
4242
with:
4343
full_repository: ${{ github.event.inputs.full_repository }}

docs/github-installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Add the `update_times_a_day` parameter to the `Evaluate Rules` step of your gitS
164164
```yaml
165165
steps:
166166
- name: Evaluate Rules
167-
uses: linear-b/gitstream-github-action@v1
167+
uses: linear-b/gitstream-github-action@v2
168168
id: rules-engine
169169
with:
170170
full_repository: ${{ github.event.inputs.full_repository }}

docs/how-it-works.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ Once gitStream is installed and configured, there are several services that will
151151
Whenever a new PR is opened or an existing PR is changed (see also [Execution Model](https://docs.gitstream.cm/execution-model/)), the following process occurs:
152152

153153
1. The **git service provider API** notifies the **gitStream service** that an applicable change has occured to the PR which triggers a call to execute the **gitStream CI/CD script**.
154-
1. The **gitStream CI/CD script** executes the GitHub Action <a href="https://github.com/linear-b/gitstream-github-action" target="_blank">`linear-b/gitstream-github-action@v1`</a> on the repository, which looks for two things:
155-
* Valid CM files that match the filepath `.cm/*.cm`
154+
1. The **gitStream CI/CD script** executes the GitHub Action <a href="https://github.com/linear-b/gitstream-github-action" target="_blank">`linear-b/gitstream-github-action@v2`</a> on the repository, which looks for two things:
155+
* Valid CM files that match the filepath `.cm/*.cm`
156156
* Any CM files that are contained in the root directory of the organization's cm repo (if applicable).
157-
1. The **gitStream CI/CD script** passes all CM metadata to the **gitStream agent** which parses a list of all applicable CM rules.
157+
1. The **gitStream CI/CD script** passes all CM metadata to the **gitStream agent** which parses a list of all applicable CM rules.
158158
1. The **GitStream agent** provides the list of applicable automations to the **gitStream service**.
159159
1. The **gitStream service** iterates through the automations and updates the PR via the **git service provider API**.
160160

docs/troubleshooting.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ Some organization limit which actions can run, in that case in the repository se
3232

3333
![GitHub allow marketplace actions](screenshots/github_settings_allow_actions.png)
3434

35-
Also, add
35+
Also, add
36+
```
37+
linear-b/gitstream-github-action@v2,*/*/.github/workflows/gitstream.yml*
3638
```
37-
linear-b/gitstream-github-action@v1,*/*/.github/workflows/gitstream.yml*
38-
```
3939
to the **Allow specified actions and reusable workflows** list, if it is shown.
4040
![GitHub allow marketplace actions](screenshots/github_settings_allow_specified_actions
4141
.png)
@@ -89,12 +89,12 @@ jobs:
8989
name: gitStream workflow automation
9090
steps:
9191
- name: Evaluate Rules
92-
uses: linear-b/gitstream-github-action@v1
92+
uses: linear-b/gitstream-github-action@v2
9393
```
9494

9595
## gitStream fails and I don't understand why
9696

97-
gitStream check run can fail from different reasons, and these are shown in the check result.
97+
gitStream check run can fail from different reasons, and these are shown in the check result.
9898

9999
#### Missing workflow file
100100

plugins/filters/getCodeowners/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ When used, create a secret TOKEN, and add it to the workflow file, in GitHub:
77
jobs:
88
gitStream:
99
...
10-
env:
10+
env:
1111
CODEOWNERS: ${{ secrets.GITSTREAM_CODEOWNERS }}
1212
steps:
1313
- name: Evaluate Rules
14-
uses: linear-b/gitstream-github-action@v1
15-
```
14+
uses: linear-b/gitstream-github-action@v2
15+
```
1616

1717
??? note "Plugin Code: getCodeowners"
1818
```javascript

tutorials/basic-usage-python-repo/.github/workflows/gitstream.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
name: gitStream workflow automation
3838
steps:
3939
- name: Evaluate Rules
40-
uses: linear-b/gitstream-github-action@v1
40+
uses: linear-b/gitstream-github-action@v2
4141
id: rules-engine
4242
with:
4343
full_repository: ${{ github.event.inputs.full_repository }}

0 commit comments

Comments
 (0)