update-docs-modified #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2019-2022 Tauri Programme within The Commons Conservancy | |
# SPDX-License-Identifier: Apache-2.0 | |
# SPDX-License-Identifier: MIT | |
name: update-docs-modified | |
on: | |
repository_dispatch: | |
types: [dispatch-test] | |
workflow_dispatch: | |
inputs: | |
gitName: | |
description: 'git name for PR' | |
required: false | |
default: 'tauri-bot' | |
gitEmail: | |
description: 'git email for PR' | |
required: false | |
default: '[email protected]' | |
tauriBranch: | |
description: 'tauri branch to pull' | |
required: false | |
jobs: | |
update-docs: | |
runs-on: ubuntu-latest | |
env: | |
# Set a variable to handle the branch | |
CURRENT_BRANCH: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tauriBranch || github.event.client_payload.ref }} | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
steps: | |
- run: echo "$GITHUB_CONTEXT" | |
- run: echo $CURRENT_BRANCH | |
- name: Checkout tauri | |
uses: actions/checkout@v3 | |
with: | |
repository: vasfvitor/tauri | |
# here sets the branch | |
# ref: 1.x | |
ref: ${{ github.event.client_payload.ref }} | |
#prolly not: | |
# ref: ${{ github.env.CURRENT_BRANCH }} | |
#nope | |
# ref: $CURRENT_BRANCH | |
path: tauri |