Difference between revisions of "GitHub Actions: run:"
Jump to navigation
Jump to search
m (Welcome moved page Run: to GitHub Actions: run:) |
|||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
* https://github.com/github/actions-cheat-sheet/blob/master/actions-cheat-sheet.adoc#run | * https://github.com/github/actions-cheat-sheet/blob/master/actions-cheat-sheet.adoc#run | ||
+ | |||
+ | <pre> | ||
+ | <nowiki> | ||
+ | - run: ./your_script_to_deploy.sh --deploy your_service | ||
+ | working-directory: path/to/your/script/ | ||
+ | env: | ||
+ | AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
+ | AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
+ | </nowiki> | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | - name: your name | ||
+ | [[GitHub Actions env:|env:]] | ||
+ | XXXXXX | ||
+ | XXXXXXX | ||
+ | run: [[yarn build]] | ||
+ | [[continue-on-error]]: true | ||
+ | |||
+ | run: echo "{environment_variable_name}={value}" >> $[[GITHUB_ENV]] | ||
+ | |||
+ | https://github.com/github/actions-cheat-sheet/blob/master/actions-cheat-sheet.adoc#run | ||
+ | jobs: | ||
+ | my_build: | ||
+ | runs-on: ubuntu-latest | ||
+ | steps: | ||
+ | - name: Checking out our code | ||
+ | uses: actions/checkout@master | ||
+ | - name: Say something | ||
+ | run: | | ||
+ | echo "A little less ${message}" | ||
+ | echo "A little more action" | ||
== Related == | == Related == | ||
* <code>[[uses:]]</code> | * <code>[[uses:]]</code> | ||
* <code>[[runs-on:]]</code> | * <code>[[runs-on:]]</code> | ||
+ | * <code>[[working-directory:]]</code> | ||
+ | * <code>[[continue-on-error:]]</code> | ||
== See also == | == See also == |
Latest revision as of 15:22, 19 July 2023
- run: ./your_script_to_deploy.sh --deploy your_service working-directory: path/to/your/script/ env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: your name env: XXXXXX XXXXXXX run: yarn build continue-on-error: true
run: echo "{environment_variable_name}={value}" >> $GITHUB_ENV
https://github.com/github/actions-cheat-sheet/blob/master/actions-cheat-sheet.adoc#run
jobs: my_build: runs-on: ubuntu-latest steps: - name: Checking out our code uses: actions/checkout@master - name: Say something run: | echo "A little less ${message}" echo "A little more action"
Related[edit]
See also[edit]
- 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, Actions Runner Controller (ARC),$GITHUB OUTPUT
Advertising: