Skip to content

Commit cd8253f

Browse files
Add new action to copy Powershell to remote repository 🦖
1 parent bc7645e commit cd8253f

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the "master" branch
8+
push:
9+
branches: [ "master" ]
10+
pull_request:
11+
branches: [ "master" ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
# This workflow contains a single job called "build"
19+
build:
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
23+
# Steps represent a sequence of tasks that will be executed as part of the job
24+
steps:
25+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26+
- uses: actions/checkout@v3
27+
28+
- name: Push a directory to another repository
29+
# You may pin to the exact commit or the version.
30+
# uses: datalbry/copy_folder_to_another_repo_action@f4ceec0eb4df6da5e4fe043dbc38c698a8ff4401
31+
uses: datalbry/copy_folder_to_another_repo_action@1.0.1
32+
with:
33+
# Source folder from the origin directory
34+
source_folder: Powershell
35+
# Destination repository
36+
destination_repo: CSS-SystemCenter-OperationsManager
37+
# Directory to push the folder contents to
38+
destination_folder: Powershell
39+
# Email for the git commit
40+
user_email: blakedrumm@microsoft.com
41+
# GitHub username for the commit
42+
user_name: blakedrumm
43+
# branch to push folder to, defaults to master
44+
destination_branch: main
45+
# The commit message
46+
commit_msg: 'Synchronized with `SCOM-Scripts-and-SQL` :fireworks: :star2:'
47+
# Destination branch to create for this commit
48+
#destination_branch_create: # optional

0 commit comments

Comments
 (0)