Skip to content

GO-165 Add git config #11

GO-165 Add git config

GO-165 Add git config #11

Workflow file for this run

name: Release
on:
release:
types: [published]
push:
branches: GO-165_create-release-workflow
env:
WORKDIR: release
GITHUB_TOKEN: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }}
jobs:
clone-cdn:
name: Git clone CDN repository
runs-on: [ self-hosted, fernando ]
defaults:
run:
working-directory: ${{ env.WORKDIR }}
steps:
- name: Checkout CDN repo
uses: actions/checkout@main
with:
path: ${{ env.WORKDIR }}/cdn.maptiler.com
repository: maptiler/cdn.maptiler.com
token: ${{ env.GITHUB_TOKEN }}
- name: Configure Git
run: |
git config user.email "[email protected]"
git config user.name "klokantechsysadmin"
working-directory: ${{ env.WORKDIR }}/cdn.maptiler.com
release:
name: Build and release CDN
runs-on: [ self-hosted, fernando ]
needs: clone-cdn
defaults:
run:
working-directory: ${{ env.WORKDIR }}/maptiler-geocoding-control
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: ${{ env.WORKDIR }}/maptiler-geocoding-control
- name: Install npm
run: npm i
- name: Create pull request
run: npm run cdn-pr
# - name: Approve pull request
# uses: juliangruber/approve-pull-request-action@v2
# with:
# github-token: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }}
# number: ${{ env.PULL_REQUEST }}
# repo: juliangruber/approve-pull-request-action
# - name: Merge pull request
# uses: juliangruber/merge-pull-request-action@v1
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# number: ${{ env.PULL_REQUEST_NUMBER }}
# method: squash # merge rebase
# repo: juliangruber/octokit-action
# - name: Publish to CDN
# run: npm run pub