Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Oct 25, 2023
1 parent cf7e964 commit e97b92d
Show file tree
Hide file tree
Showing 7 changed files with 1,291 additions and 30 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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
Loading

0 comments on commit e97b92d

Please sign in to comment.