-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (32 loc) · 1.19 KB
/
create-repository.yml
File metadata and controls
36 lines (32 loc) · 1.19 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
name: Update Workflows
on:
repository_dispatch:
types: [repository]
jobs:
add-dispatch:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add Repository Dispatch
run: |
echo -e '\n - name: Repository Dispatch1' >> .github/workflows/main.yml
echo ' uses: peter-evans/repository-dispatch@v2' >> .github/workflows/main.yml
echo ' with:' >> .github/workflows/main.yml
echo ' token: ${{ '${{ secrets.REPO_GITHUB_TOKEN }}' }}' >> .github/workflows/main.yml
echo ' repository: ${{ github.event.client_payload.repo }}' >> .github/workflows/main.yml
echo ' event-type: update' >> .github/workflows/main.yml
echo ;
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
title: Update main.yml
commit-message: Update main.yml
branch: update-main-yml
branch-suffix: timestamp
delete-branch: true
base: main
labels: automated
body: |
This is an automated update to the main.yml file. Add a new repository.
token: ${{ secrets.REPO_GITHUB_TOKEN }}