Difference between revisions of "Github.ref"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} name: CI on: push jobs: prod-check: if: ${{ github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest steps: - run: echo "Deploy...")
 
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
  [[jobs:]]
 
  [[jobs:]]
 
   prod-check:
 
   prod-check:
     if: ${{ github.ref == '[[refs/heads/]]main' }}
+
     if: ${{ [[github.]]ref == '[[refs/heads/]]main' }}
 
     runs-on: ubuntu-latest
 
     runs-on: ubuntu-latest
 
     steps:
 
     steps:
 
       - run: echo "Deploying to production server on branch $GITHUB_REF"
 
       - run: echo "Deploying to production server on branch $GITHUB_REF"
 +
 +
 +
 +
{{GitHub Actions}}

Latest revision as of 17:09, 19 May 2023

Advertising: