Compare commits

...

1 Commits

Author SHA1 Message Date
Nikita Pivkin 82f7575aa1 chore: comment on deployment steps 2026-04-13 13:51:31 +06:00
+23 -23
View File
@@ -42,26 +42,26 @@ jobs:
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }} BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }}
run: make test run: make test
- name: Create PR # - name: Create PR
env: # env:
GH_TOKEN: ${{ secrets.TRIVY_ACTION_DEPLOY_TOKEN }} # GH_TOKEN: ${{ secrets.TRIVY_ACTION_DEPLOY_TOKEN }}
TRIVY_VERSION: ${{ inputs.trivy_version }} # TRIVY_VERSION: ${{ inputs.trivy_version }}
REPO: ${{ github.repository }} # REPO: ${{ github.repository }}
BASE_BRANCH: ${{ github.event.repository.default_branch }} # BASE_BRANCH: ${{ github.event.repository.default_branch }}
run: | # run: |
gh auth setup-git # gh auth setup-git
git config user.name "github-actions[bot]" # git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" # git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
BRANCH="bump-trivy-${TRIVY_VERSION}" # BRANCH="bump-trivy-${TRIVY_VERSION}"
git checkout -b "${BRANCH}" # git checkout -b "${BRANCH}"
git add action.yaml README.md test/ # git add action.yaml README.md test/
git commit -m "chore(deps): Update trivy to v${TRIVY_VERSION}" # git commit -m "chore(deps): Update trivy to v${TRIVY_VERSION}"
git push origin "${BRANCH}" # git push origin "${BRANCH}"
PR_RESPONSE=$(gh api repos/${REPO}/pulls \ # PR_RESPONSE=$(gh api repos/${REPO}/pulls \
--method POST \ # --method POST \
--field title="chore(deps): Update trivy to v${TRIVY_VERSION}" \ # --field title="chore(deps): Update trivy to v${TRIVY_VERSION}" \
--field body="This PR was automatically generated by the bump-trivy workflow." \ # --field body="This PR was automatically generated by the bump-trivy workflow." \
--field base="${BASE_BRANCH}" \ # --field base="${BASE_BRANCH}" \
--field head="${BRANCH}") # --field head="${BRANCH}")
echo "Pull Request Number - $(echo "${PR_RESPONSE}" | jq -r '.number')" # echo "Pull Request Number - $(echo "${PR_RESPONSE}" | jq -r '.number')"
echo "Pull Request URL - $(echo "${PR_RESPONSE}" | jq -r '.html_url')" # echo "Pull Request URL - $(echo "${PR_RESPONSE}" | jq -r '.html_url')"