-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ops: created deploy using github actions
- Loading branch information
1 parent
22dccbb
commit 3fd0aa1
Showing
4 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Redeploy Backend to ensure that zen package is up-to-date! | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
dispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# - run: | | ||
# curl -u "${{ secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" \ | ||
# -H "Accept: application/vnd.github.everest-preview+json" \ | ||
# -H "Content-Type: application/json" \ | ||
# https://api.github.com/repos/docker-sstc/docker-notify/actions/workflows/main.yml/dispatches \ | ||
# --data '{"ref": "master"}' | ||
- uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.PAT_TOKEN }} | ||
script: | | ||
await github.rest.actions.createWorkflowDispatch({ | ||
owner: 'zenlang-rs', | ||
repo: 'backend', | ||
workflow_id: 'deploy.yml', | ||
ref: 'main' | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/// Just returns the same code as Ok! | ||
/// TODO implement later | ||
pub fn compile(code: String) -> Result<String, String> { | ||
pub fn compile(mut code: String) -> Result<String, String> { | ||
code.push_str("\nBhag yha se!!"); | ||
Ok(code) | ||
} |