blob: 627f0da7f12d9384f2fa7bd9af975d87ea5b08ff [file] [log] [blame]
# 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@0ad4b8fadaa221de15dcec353f45205ec38ea70b
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@6d6857d36972b65feb161a90e484f2984215f83e
with:
path: flutter
commit-message: blah
committer: GitHub <noreply@github.com>
token: ${{ secrets.FLUTTERACTIONSBOT_CP_TOKEN }}
labels: |
cp: review
title: '[github actions] testing purposes'
reviewers: xilaizhang