Home > Enterprise >  GitHub Actions source file
GitHub Actions source file

Time:02-03

how do I source this file which is in another repo. here is the GitHub action workflow example which is used in another project. I used the same code, its complaining that "file is not found"

run: |
        # Setting up cluster configurations, config files are in the kubectl image
        # https://github.com /kube-apps/tree/master/kubectl
        source /gke/gke-clusters.config
        source /aks/aks-clusters.config

CodePudding user response:

Just add the full path to the source lines.

run: |
# Setting up cluster configurations, config files are in the kubectl image
# https://github.com/kube-apps/tree/master/kubectl
source https://github.com/ /kube-apps/tree/master/kubectl/gke-clusters.config
source https://github.com /kube-apps/tree/master/kubectl/aks-clusters.config
  • Related