This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
forked from perforce/setup-p4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquickstart.yml
64 lines (55 loc) · 1.82 KB
/
quickstart.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
on: [push]
jobs:
quickstart:
runs-on: ubuntu-latest
name: quickstart
# In GitHub Actions environment variables can be provided at the workflow level, job level, or step level.
# See GitHub documentation for more details: https://docs.github.com/en/actions/learn-github-actions/environment-variables
env:
P4PORT: ${{ secrets.P4PORT }}
P4USER: ${{ secrets.P4USER }}
steps:
# Checkout assets stored in GitHub
- name: Checkout
uses: actions/checkout@v2
# Install p4 cli and cache it if we are running within a self hosted runner
- name: p4 setup
uses: perforce/setup-p4@v1
with:
p4_version: 21.2
# run trust only if your P4PORT includes "ssl:"
- name: p4 trust
uses: perforce/setup-p4@v1
with:
command: trust
# Authenticate to Helix Core using P4PASSWD GitHub Secret
- name: p4 login
uses: perforce/setup-p4@v1
with:
command: login
env:
P4PASSWD: ${{ secrets.P4PASSWD }}
# Create a workspace
- name: p4 client
uses: perforce/setup-p4@v1
with:
command: client
arguments: -i
spec: |
Client: github-actions-setup-p4
Owner: ${{ secrets.P4USER }}
Description:
Created by ${{ secrets.P4USER }}.
Root: /tmp
Options: noallwrite noclobber nocompress unlocked modtime rmdir
SubmitOptions: leaveunchanged
LineEnd: local
View:
//projects/project_a/... //github-actions-setup-p4/projects/project_a/...
# pull down assets from Helix Core
- name: p4 sync
uses: perforce/setup-p4@v1
env:
P4CLIENT: github-actions-setup-p4
with:
command: sync