diff --git a/.github/workflows/build-docs-command-reference.yaml b/.github/workflows/build-docs-command-reference.yaml index 2c0c5104..d6d39a9f 100644 --- a/.github/workflows/build-docs-command-reference.yaml +++ b/.github/workflows/build-docs-command-reference.yaml @@ -10,7 +10,7 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +# Sets permissions of the GITHUB_TOKEN to allow updates to the repository permissions: contents: write id-token: write @@ -19,7 +19,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Update docs run: ./build/Build-CommandReference.ps1 shell: pwsh diff --git a/.github/workflows/publish-tests.yml b/.github/workflows/publish-tests.yml new file mode 100644 index 00000000..b1390988 --- /dev/null +++ b/.github/workflows/publish-tests.yml @@ -0,0 +1,30 @@ +# Updates the maester-tests repository with the latest tests +# +name: Publish Maester Tests + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - 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: merill@users.noreply.github.com + commit-message: See ORIGIN_COMMIT from $GITHUB_REF + target-branch: main