Skip to content

Commit

Permalink
Updating the flavor text
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeychernyshev committed Aug 17, 2024
1 parent 2ba1d23 commit c0664ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
fetch-depth:
description: "The depth of commits to fetch"
required: false
default: 100000
default: "100000"

branding:
icon: "map"
Expand All @@ -27,7 +27,7 @@ runs:
fetch-depth: ${{ inputs.fetch-depth }}
ref: ${{ github.ref }}

- name: Asking our wizard to extract the inner knowledge
- name: Inviting a wizard from a distant land
id: cache-scc
uses: actions/cache@v4
env:
Expand All @@ -38,7 +38,7 @@ runs:
key: ${{ env.cache-name }}

- if: ${{ steps.cache-scc.outputs.cache-hit != 'true' }}
name: Inviting a wizard from a distant land
name: Providing transportation for a wizard if they are away
run: |
mkdir -p wizard
wget https://github.com/boyter/scc/releases/download/v3.2.0/scc_Linux_x86_64.tar.gz -O wizard/scc.gz
Expand Down Expand Up @@ -89,7 +89,7 @@ runs:
path: history.json
key: ${{ env.cache-name }}-${{ github.ref }}-

- name: Get history from the site
- name: Checking the library that we build for the history records
if: ${{ inputs.deploy-destination != '' }}
run: curl -L -f -o history.json ${{ inputs.deploy-destination }}/history.json
shell: "bash"
Expand Down
12 changes: 7 additions & 5 deletions templates/gitterra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,22 @@ GitTerra:
image: node:latest
needs: []
variables:
# @TODO Parametrize this
GIT_DEPTH: $[[ inputs.fetch-depth ]]
script:
- echo "Let's play GitTerra!"
# - set
# - find . -not -path './.git' -not -path './.git/*'
- mkdir -p /tmp/gitterra/scc
- echo "===================="
- echo Transporting builders to the construction site
- mkdir -p /tmp/gitterra
- git clone --single-branch --depth=1 -b timelapse https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/gitterra/GitTerra.git /tmp/gitterra/gitterra
- (cd /tmp/gitterra/gitterra && npm install)
- echo Inviting a wizard from a distant land
- mkdir -p /tmp/gitterra/scc
- wget https://github.com/boyter/scc/releases/download/v3.2.0/scc_Linux_x86_64.tar.gz -O /tmp/gitterra/scc/scc.gz
- tar -C /tmp/gitterra/scc -xvf /tmp/gitterra/scc/scc.gz
- chmod +x /tmp/gitterra/scc/scc
- echo "Fetching history from ${CI_PAGES_URL}/history.json"
- echo "Checking the library that we build for the history records"
- curl -L -f -o history.json ${CI_PAGES_URL}/history.json || true
- echo "Building the city of GitTerra"
- node /tmp/gitterra/gitterra/src/generateMap.js ./ /tmp/gitterra/scc/scc
artifacts:
paths:
Expand Down

0 comments on commit c0664ce

Please sign in to comment.