3
3
mirror of https://github.com/octoleo/octosync.git synced 2024-11-26 06:46:32 +00:00
octosync/.github/workflows/joomla4.0-dev-lang.yml
Workflow config file is invalid. Please check your config file: yaml: line 41: did not find expected key

49 lines
2.2 KiB
YAML

name: "Sync Joomla4.0-dev CMS Files to Core Language"
on:
# run once per/day (uncommented until we are ready to run this)
# schedule:
# - cron: '4 28 * * *'
# so we can manually run a sync also
workflow_dispatch:
jobs:
build:
runs-on: [ubuntu-20.04]
steps:
# We use this approach to sign all commits
# Also to use basic git commands in the sync script
# with no further authentication needed
# see: https://github.com/vdm-io/github-user
- name: Setup gitHub User Details
# how to set secrets?
# see: https://docs.github.com/en/actions/reference/encrypted-secrets
env:
# The github username with access
GIT_USER: ${{ secrets.GIT_USER }}
# The github user email with access
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
# The github personal access token
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
# The name of the myprivatekeys.asc user
GPG_USER: ${{ secrets.GPG_USER }}
# gpg -a --export-secret-keys >myprivatekeys.asc
# The whole key file text from the above myprivatekeys.asc
# This key must be linked to the github user being used
GPG_KEY: ${{ secrets.GPG_KEY }}
# A id_ed25519 ssh private key liked to the github user account
# see: https://docs.github.com/en/github-ae@latest/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
SSH_KEY: ${{ secrets.SSH_KEY }}
# A id_ed25519.pub ssh public key liked to the github user account
SSH_PUB: ${{ secrets.SSH_PUB }}
run: |
/bin/bash <(/bin/curl -s https://raw.githubusercontent.com/vdm-io/github-user/master/src/setup.sh) --gpg-key "$GPG_KEY" --gpg-user "$GPG_USER" --ssh-key "$SSH_KEY" --ssh-pub "$SSH_PUB" --git-user "$GIT_USER" --git-email "$GIT_EMAIL" --git-token "$GIT_TOKEN"
- name: Clone Sync Bot Repo
# this is the repo that does the work
run: |
/bin/git clone -b master --single-branch git@github.com:vdm-io/github-sync-bot.git bot
- name: Sync The Repo Files
run: |
/bin/bash ./bot/src/sync.sh --conf=bot/conf/joomla4.0-dev-lang