Skip to content

Commit

Permalink
Upload artifacts
Browse files Browse the repository at this point in the history
* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Update FitbitBuild.yml

* Create Post.yml

* Update FitbitBuild.yml

* Update Post.yml

* Update Post.yml

* Update Post.yml

* Update FitbitBuild.yml
  • Loading branch information
smirko-dev authored Dec 7, 2020
1 parent 4a24603 commit 10a1d86
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/FitbitBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@ jobs:

- name: Run Build
run: npx fitbit-build --if-present

- name: Upload artifact
uses: actions/upload-artifact@v2
if: ${{ success() }}
with:
path: build/app.fba
if-no-files-found: error
38 changes: 38 additions & 0 deletions .github/workflows/Post.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: Post

on:
workflow_run:
workflows: ["FitbitBuild"]
branches: [main]
types:
- completed

jobs:
post:
name: Post info
runs-on: ubuntu-latest
needs: build
steps:
- name: Get workflow info
shell: bash
run: |
curl -sL -X GET "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID/artifacts"
# - name: Install CML
# run: npm i -g @dvcorg/cml

# - name: Post comment
# shell: bash
# env:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# run: |
# echo -e "Build successful" >> report.md
# cml-send-comment report.md

# run: |
# jq -nc '{"body": "test comment"}' | \
# curl -sL -X POST -d @- \
# -H "Content-Type: application/json" \
# -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
# "https://api.github.com/repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/comments"

0 comments on commit 10a1d86

Please sign in to comment.