-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (57 loc) · 1.7 KB
/
checkout.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Checkouts
on:
workflow_dispatch:
jobs:
# chkout_base:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
# ######### Result ##########
# Run actions/checkout@v2
# Syncing repository: my-kro/sdk-release-mgr
# Getting Git version info
# Deleting the contents of '/home/runner/work/sdk-release-mgr/sdk-release-mgr'
# Initializing the repository
# Disabling automatic garbage collection
# Setting up auth
# Fetching the repository
# Determining the checkout info
# Checking out the ref
# /usr/bin/git log -1 --format='%H'
# '9c2e8c4853e031c7281b73bda73364b176bf70bf'
clone_other:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: my-kro/consumer-A #Needed to be publc. Else need something with secrets.TOKEN
path: consumerA
# ######### Result ##########
# Run actions/checkout@v2
# Syncing repository: my-kro/consumer-A
# Getting Git version info
# Initializing the repository
# Disabling automatic garbage collection
# Setting up auth
# Determining the default branch
# Fetching the repository
# Determining the checkout info
# Checking out the ref
# /usr/bin/git log -1 --format='%H'
# '10fe05354642f7be22c3f8e0da16ee31a4f399bd'
copy-file:
runs-on: ubuntu-latest
steps:
- name: Pushes test file
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.WF_SEC }}
with:
source_file: 'test2.md'
destination_repo: 'my-kro/consumer-A'
destination_folder: 'test-dir'
user_email: '[email protected]'
user_name: 'dmnemec'
commit_message: 'A custom message for the commit'