-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.04 KB
/
multiple_shells.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
33
34
35
36
name: Multiple shells commands
on:
push:
branches:
- "main"
pull_request:
types: [closed, assigned, opened, reopened]
jobs:
run-shell-command:
runs-on: ubuntu-latest
steps:
- name: python commands
run: |
import platform
print(platform.processor())
shell: python
run-windows-command:
runs-on: windows-latest
needs: ["run-shell-command"]
steps:
- name: current directory with powershell
run: Get-Location
- name: current directory with bash
run: pwd
shell: bash
- name: print some default env variables
run: |
echo "HOME: ${HOME}"
echo "GITHUB_WORKFLOW: ${GITHUB_WORKFLOW}"
echo "GITHUB_ACTION: ${GITHUB_ACTION}"
echo "GITHUB_ACTIONS: ${GITHUB_ACTIONS}"
echo "GITHUB_ACTOR: ${GITHUB_ACTOR}"
echo "GITHUB_REPOSITORY: ${GITHUB_REPOSITORY}"
echo "GITHUB_EVENT_NAME: ${GITHUB_EVENT_NAME}"
echo "GITHUB_WORKSPACE: ${GITHUB_WORKSPACE}"
shell: bash