Skip to content

Commit

Permalink
Add ZIP and archive to action
Browse files Browse the repository at this point in the history
  • Loading branch information
webb-ben committed Jul 20, 2023
1 parent 0208be6 commit 3142fb5
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,34 @@ branding:
color: purple

inputs:
filepath:
namespace_dir:
description: "Filepath to load data from"
required: true
default: "namespaces"
default: "./namespaces"
outputs:
yourls:
description: "YOURLS MySQL dump named yourls.sql.gz"
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
with:
repository: cgs-earth/yourls-action
- shell: bash
env:
YOURLS_SOURCE: ${{ inputs.filepath }}
GH_TOKEN: ${{ github.token }}
run: |
gh repo clone cgs-earth/yourls-action
- shell: bash
env:
YOURLS_SOURCE: ${{ inputs.namespace_dir }}
run: |
docker compose up -d mysql
sleep 10
docker compose up yourls
docker compose -f yourls-action/docker-compose.yml up -d mysql
sleep 30
docker compose -f yourls-action/docker-compose.yml up yourls
sleep 1
- shell: bash
run: docker exec mysql sh /dump.sh | gzip > yourls.sql.gz
run: |
docker exec mysql sh /dump.sh | gzip > yourls.sql.gz
- name: Archive SQL Dump
uses: actions/upload-artifact@v3
with:
name: yourls
path: ./yourls.sql.gz

0 comments on commit 3142fb5

Please sign in to comment.