Difference between revisions of "Github.ref"
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
name: CI on: push jobs: prod-check: if: ${{ github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest steps: - run: echo "Deploying to production server on branch $GITHUB_REF"
GitHub Actions, act, .github/workflows/
, ~/actions-runner/
, svc.sh
, run:
, deploy:
, runs-on:
, uses:
, steps:
, jobs:
, on:, env:, uses:, script:, continue-on-error:, template:, aws-actions, inputs:
, GITHUB_ENV, needs:, github.
, GitHub runner, my-docker-publish.yml, GitHub Actions variables, GitHub Actions contexts, GitHub Actions Importer, If:, SLSA
Advertising: