forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.19 KB
/
minimal.yml
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
# Copyright 2023 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
name: Minimal workflow to test github action token
on:
workflow_dispatch
permissions: write-all
jobs:
minimal_token_test:
name: minimal_token_test
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Flutter Repo
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f
with:
repository: flutter/flutter
token: ${{ github.token }}
path: flutter
ref: master
fetch-depth: 0
- name: Write a random file
run: |
cd flutter
touch empty.json
- name: Create Pull Request
uses: peter-evans/create-pull-request@9153d834b60caba6d51c9b9510b087acf9f33f83
with:
path: flutter
commit-message: blah
committer: GitHub <[email protected]>
token: ${{ secrets.FLUTTERACTIONSBOT_CP_TOKEN }}
labels: |
cp: review
title: '[github actions] testing purposes'
reviewers: xilaizhang