add example #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: HTTP Request Action | |
on: | |
push: | |
branches: | |
- main # Adjust to your branch name | |
jobs: | |
katana-ci-startup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- name: Make HTTP Request | |
env: | |
API_KEY: ${{ secrets.API_KEY }} | |
API_URL: ${{ secrets.API_URL }} | |
run: | | |
NAME=$(curl -s -H "Authorization: Bearer $KATANA_CI_KEY" $KATANA_CI_URL/start) | |
echo "Response: $RESPONSE" | |
echo "API_RESPONSE=$RESPONSE" >> $GITHUB_ENV | |
- name: Use Response in Another Job | |
run: | | |
echo "The response is $API_RESPONSE" | |
test: | |
runs-on: ubuntu-latest-4-cores | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ env.RUST_VERSION }} | |
- uses: Swatinem/rust-cache@v2 | |
- uses: arduino/setup-protoc@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- run: | | |
cargo test --all-features |