Skip to content

Add actions

Add actions #1

name: Update Internal GHE Repo
on:
push:
branches:
- '**'
tags-ignore:
- '**'
jobs:
update-repo:
runs-on: ubuntu-latest
steps:
- name: Checkout local repo

Check failure on line 12 in .github/workflows/update-internal-repo.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-internal-repo.yaml

Invalid workflow file

You have an error in your yaml syntax on line 12
uses: actions/checkout@v4
with:
path: source
- name: Checkout remote repo
uses: actions/checkout@v4
with:
github-server-url: https://github.ibm.com
repository: automation-paas-cd-pipeline/mas-gitops
ref: ${GITHUB_REF##*/}
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
path: target
- name: Copy over files
run: $GITHUB_WORKSPACE/build/bin/copy-gitops.sh -s $GITHUB_WORKSPACE/source -t $GITHUB_WORKSPACE/target
- name: Setup git config
run: |
cd $GITHUB_WORKSPACE/target
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Commit changes to remote repo
run: |
echo "Push changes to ${GITHUB_REF##*/} branch of https://github.ibm.com/automation-paas-cd-pipeline/mas-gitops"
git push origin ${GITHUB_REF##*/}