Skip to content

Commit

Permalink
[WIP] test workflow_run
Browse files Browse the repository at this point in the history
  • Loading branch information
WonyoungChoi committed Sep 27, 2021
1 parent 96b712b commit 5432bc2
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/check-symbol.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Check Symbols

on:
workflow_run:
workflows: ["Build"]
types: [completed]

jobs:
check:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' }}
runs-on: ubuntu-latest

steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump payload
uses: actions/github-script@v5
with:
script: |
console.log(JSON.stringify(context.payload))
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: flutter-tizen/tizen_allowlist
token: ${{ secrets.MY_PAT }}
path: tizen_allowlist
- uses: TizenAPI/tizenfx-build-actions/download-workflow-artifacts@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
path: artifacts
unzip: false
- name: check symbols
env:
ALLOWLIST: tizen_allowlist/4.0.0_native_whitelist_wearable_v12.txt
run: |
for f in $(ls -1 artifacts/*.zip); do
unzip -d artifacts/${f%.*} artifacts/$f
done
find artifacts/ -name "libflutter_engine.so" -o -name "libflutter_tizen_wearable.so" |
xargs ci/docker/tizen/tools/check-symbol.py --allowlist=$ALLOWLIST
- name: report success
uses: actions/github-script@v5
with:
script: |
console.log(JSON.stringify(context.payload))

0 comments on commit 5432bc2

Please sign in to comment.