Skip to content

Github Actions Dynamic Repo & Branch

github repolarında actions çalıştırdığımız zamanlarda, birden fazla action çalıştırmak istediğimiz zaman işler karışabiliyor. bu bakımdan hangi repo ve branch de olduğumuzu action içerisinde set edebiliriz.

örneğin bir deploy anında github.repository ya da github.ref_name ile değerlere erişebiliriz.

jobs:
deploy:
runs-on: ubuntu-latest
name: "Deploying '${{ github.repository }}' on Branch '${{ github.ref_name }}'"

veya genel bir kapsamda belirtmek istersek, run-name ile ilerleyebiliriz.

Published indevops

Comments are closed.