Skip to content

Commit 9f59fe0

Browse files
alexeldeibDirectXMan12
authored andcommitted
πŸƒβ€β™‚οΈ use new github action syntax
1 parent 9f8aab6 commit 9f59fe0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

β€Ž.github/workflows/main.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on: pull_request
2+
3+
jobs:
4+
pr_checks:
5+
runs-on: ubuntu-latest
6+
name: verify emoji
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: verify
10+
uses: ./hack/release
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

β€Žhack/release/verify-emoji.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ base_link=$(jq -r '.pull_request.url' < ${GITHUB_EVENT_PATH})
2525
head_commit=$(curl -H "Authorization: Bearer ${GITHUB_TOKEN}" -H 'Accept: application/vnd.github.antiope-preview+json' -q ${base_link} | jq -r '.head.sha')
2626
echo "head commit is ${head_commit}"
2727

28-
curl https://api.github.com/repos/${GITHUB_REPOSITORY}/check-runs -XPOST -H "Authorization: Bearer ${GITHUB_TOKEN}" -H 'Accept: application/vnd.github.antiope-preview+json' -H 'Content-Type: application/json' -q --data-raw '{"name": "Verify Emoji", "head_sha": "'${head_commit}'", "conclusion": "'${conclusion}'", "status": "completed", "completed_at": "'$(date -Iseconds)'", "output": {"title": "Verify Emoji", "summary": "'"${summary}"'"}}'
29-
28+
curl --fail https://api.github.com/repos/${GITHUB_REPOSITORY}/check-runs -XPOST -H "Authorization: Bearer ${GITHUB_TOKEN}" -H 'Accept: application/vnd.github.antiope-preview+json' -H 'Content-Type: application/json' -q --data-raw '{"name": "Verify Emoji", "head_sha": "'${head_commit}'", "conclusion": "'${conclusion}'", "status": "completed", "completed_at": "'$(date -Iseconds)'", "output": {"title": "Verify Emoji", "summary": "'"${summary}"'"}}'

0 commit comments

Comments
Β (0)