mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-18 01:01:02 +08:00
🔧 chore(ci): set the check status of the commit created by the workflow to pass
This commit is contained in:
parent
ee00df151b
commit
a8061d9521
9
.github/workflows/renovate-app-version.yml
vendored
9
.github/workflows/renovate-app-version.yml
vendored
@ -9,6 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
statuses: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.3.0
|
||||
@ -19,6 +20,7 @@ jobs:
|
||||
run: |
|
||||
git config --local user.email "githubaction@githubaction.com"
|
||||
git config --local user.name "github-action"
|
||||
gh auth login --with-token <<< "${{ github.token }}"
|
||||
|
||||
- name: Get list of updated files by the last commit in this branch separated by space
|
||||
id: updated-files
|
||||
@ -50,6 +52,13 @@ jobs:
|
||||
new_version=$(cat "apps/$app_name/${old_version}.version")
|
||||
rm -f "apps/$app_name/${old_version}.version"
|
||||
git add "apps/$app_name/*" && git commit -m "🔧 chore($app_name): update app version from $old_version to $new_version" --no-verify && git push || true
|
||||
gh api --method POST -H "Accept: application/vnd.github+json" \
|
||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
/repos/${{ github.repository }}/statuses/$(git show -s --format=%H) \
|
||||
-f 'state=success' \
|
||||
-f 'target_url=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' \
|
||||
-f 'description=CI/CD' \
|
||||
-f 'context=${{ github.workflow}}'
|
||||
fi
|
||||
fi
|
||||
done
|
||||
Loading…
x
Reference in New Issue
Block a user