-
Notifications
You must be signed in to change notification settings - Fork 45
35 lines (30 loc) · 1.02 KB
/
side-projects.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
name: Update side projects
on:
push:
tags: ["**"]
branches: [master]
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
scow-vagrant:
name: Update scow-vagrant
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}
if: vars.PUSH_VAGRANT == 'true'
steps:
- uses: actions/checkout@v4
- name: Create version file for tag commit
if: github.ref_type == 'tag'
uses: finnp/create-file-action@master
env:
FILE_NAME: "./deploy/vagrant/VERSION"
FILE_DATA: "${{ github.ref_name }}"
- name: Pushes to ${{ vars.VAGRANT_REPO_OWNER }}/${{ vars.VAGRANT_REPO_NAME }} repo
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.SCOW_DEPLOYMENT_PAT }}
folder: ./deploy/vagrant
repository-name: ${{ vars.VAGRANT_REPO_OWNER }}/${{ vars.VAGRANT_REPO_NAME }}
branch: ${{ github.ref_type == 'branch' && github.ref_name || 'master' }}