forked from maester365/maester
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 1013 Bytes
/
publish-tests.yaml
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
# Updates the maester-tests repository with the latest tests
# This is still required since we use it for the GitHub action and Azure DevOPs starter guide.
name: publish-tests
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
paths:
- "tests/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish to maester-tests
id: push_directory
uses: cpina/github-action-push-to-another-repository@target-branch
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: ./tests
target-directory: ./tests
destination-github-username: "maester365"
destination-repository-name: "maester-tests"
user-email: [email protected]
commit-message: See ORIGIN_COMMIT from $GITHUB_REF
target-branch: main