From 201b8794d32503713baa39af09507fb0e46645ab Mon Sep 17 00:00:00 2001 From: initializ-bot Date: Wed, 24 Jul 2024 17:12:12 +0530 Subject: [PATCH] action-update --- .github/workflows/approve-bot-pr.yml | 20 ++++++++++---------- .github/workflows/create-draft-release.yml | 14 +++++++------- .github/workflows/label-pr.yml | 4 ++-- .github/workflows/lint-yaml.yml | 2 +- .github/workflows/push-buildpackage.yml | 14 +++++++------- .github/workflows/update-github-config.yml | 22 +++++++++++----------- 6 files changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/approve-bot-pr.yml b/.github/workflows/approve-bot-pr.yml index c798e64..f8a757e 100644 --- a/.github/workflows/approve-bot-pr.yml +++ b/.github/workflows/approve-bot-pr.yml @@ -16,13 +16,13 @@ jobs: pr-number: ${{ steps.pr-data.outputs.number }} steps: - name: 'Download artifact' - uses: paketo-buildpacks/github-config/actions/pull-request/download-artifact@main + uses: initializ-buildpacks/github-config/actions/pull-request/download-artifact@main with: name: "event-payload" repo: ${{ github.repository }} run_id: ${{ github.event.workflow_run.id }} workspace: "/github/workspace" - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} + token: ${{ secrets.PAT }} - id: pr-data run: | echo "author=$(cat event.json | jq -r '.pull_request.user.login')" >> "$GITHUB_OUTPUT" @@ -31,22 +31,22 @@ jobs: approve: name: Approve Bot PRs needs: download - if: ${{ needs.download.outputs.pr-author == 'paketo-bot' || needs.download.outputs.pr-author == 'dependabot[bot]' }} + if: ${{ needs.download.outputs.pr-author == 'initializ-bot' || needs.download.outputs.pr-author == 'dependabot[bot]' }} runs-on: ubuntu-22.04 steps: - name: Check Commit Verification id: unverified-commits - uses: paketo-buildpacks/github-config/actions/pull-request/check-unverified-commits@main + uses: initializ-buildpacks/github-config/actions/pull-request/check-unverified-commits@main with: - token: ${{ secrets.PAKETO_BOT_REVIEWER_GITHUB_TOKEN }} + token: ${{ secrets.PAT }} repo: ${{ github.repository }} number: ${{ needs.download.outputs.pr-number }} - name: Check for Human Commits id: human-commits - uses: paketo-buildpacks/github-config/actions/pull-request/check-human-commits@main + uses: initializ-buildpacks/github-config/actions/pull-request/check-human-commits@main with: - token: ${{ secrets.PAKETO_BOT_REVIEWER_GITHUB_TOKEN }} + token: ${{ secrets.PAT }} repo: ${{ github.repository }} number: ${{ needs.download.outputs.pr-number }} @@ -56,9 +56,9 @@ jobs: - name: Approve if: steps.human-commits.outputs.human_commits == 'false' && steps.unverified-commits.outputs.unverified_commits == 'false' - uses: paketo-buildpacks/github-config/actions/pull-request/approve@main + uses: initializ-buildpacks/github-config/actions/pull-request/approve@main with: - token: ${{ secrets.PAKETO_BOT_REVIEWER_GITHUB_TOKEN }} + token: ${{ secrets.PAT }} number: ${{ needs.download.outputs.pr-number }} - name: Enable Auto-Merge @@ -66,4 +66,4 @@ jobs: run: | gh pr merge ${{ needs.download.outputs.pr-number }} --auto --rebase env: - GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} diff --git a/.github/workflows/create-draft-release.yml b/.github/workflows/create-draft-release.yml index 281809f..41c4b1f 100644 --- a/.github/workflows/create-draft-release.yml +++ b/.github/workflows/create-draft-release.yml @@ -73,14 +73,14 @@ jobs: - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true - name: Reset Draft Release id: reset - uses: paketo-buildpacks/github-config/actions/release/reset-draft@main + uses: initializ-buildpacks/github-config/actions/release/reset-draft@main with: repo: ${{ github.repository }} token: ${{ github.token }} - name: Calculate Semver Tag if: github.event.inputs.version == '' id: semver - uses: paketo-buildpacks/github-config/actions/tag/calculate-semver@main + uses: initializ-buildpacks/github-config/actions/tag/calculate-semver@main with: repo: ${{ github.repository }} token: ${{ github.token }} @@ -97,15 +97,15 @@ jobs: run: ./scripts/package.sh --version "${{ steps.tag.outputs.tag }}" - name: Create Release Notes id: create-release-notes - uses: paketo-buildpacks/github-config/actions/release/notes@main + uses: initializ-buildpacks/github-config/actions/release/notes@main with: repo: ${{ github.repository }} - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} + token: ${{ secrets.PAT }} - name: Create Release - uses: paketo-buildpacks/github-config/actions/release/create@main + uses: initializ-buildpacks/github-config/actions/release/create@main with: repo: ${{ github.repository }} - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} + token: ${{ secrets.PAT }} tag_name: v${{ steps.tag.outputs.tag }} target_commitish: ${{ github.sha }} name: v${{ steps.tag.outputs.tag }} @@ -132,7 +132,7 @@ jobs: if: ${{ always() && needs.unit.result == 'failure' || needs.integration.result == 'failure' || needs.release.result == 'failure' }} steps: - name: File Failure Alert Issue - uses: paketo-buildpacks/github-config/actions/issue/file@main + uses: initializ-buildpacks/github-config/actions/issue/file@main with: token: ${{ secrets.GITHUB_TOKEN }} repo: ${{ github.repository }} diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index b09cdf0..6c67f05 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -28,6 +28,6 @@ jobs: - name: Auto-label Semver if: ${{ failure() }} - uses: paketo-buildpacks/github-config/actions/pull-request/auto-semver-label@main + uses: initializ-buildpacks/github-config/actions/pull-request/auto-semver-label@main env: - GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} diff --git a/.github/workflows/lint-yaml.yml b/.github/workflows/lint-yaml.yml index e6f4a8b..21e9575 100644 --- a/.github/workflows/lint-yaml.yml +++ b/.github/workflows/lint-yaml.yml @@ -15,7 +15,7 @@ jobs: - name: Checkout github-config uses: actions/checkout@v3 with: - repository: paketo-buildpacks/github-config + repository: initializ-buildpacks/github-config path: github-config - name: Set up Python diff --git a/.github/workflows/push-buildpackage.yml b/.github/workflows/push-buildpackage.yml index f96478e..1db4316 100644 --- a/.github/workflows/push-buildpackage.yml +++ b/.github/workflows/push-buildpackage.yml @@ -24,11 +24,11 @@ jobs: - name: Download id: download - uses: paketo-buildpacks/github-config/actions/release/download-asset@main + uses: initializ-buildpacks/github-config/actions/release/download-asset@main with: url: ${{ steps.event.outputs.download_url }} output: "/github/workspace/buildpackage.cnb" - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} + token: ${{ secrets.PAT }} - name: Validate version run: | @@ -52,11 +52,11 @@ jobs: - name: Push to DockerHub id: push env: - DOCKERHUB_USERNAME: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }} - DOCKERHUB_PASSWORD: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD }} + DOCKERHUB_USERNAME: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME }} + DOCKERHUB_PASSWORD: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD }} GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }} run: | - REPOSITORY="${GITHUB_REPOSITORY_OWNER/-/}/${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/}" # translates 'paketo-buildpacks/bundle-install' to 'paketobuildpacks/bundle-install' + REPOSITORY="${GITHUB_REPOSITORY_OWNER/-/}/${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/}" # translates 'initializ-buildpacks/bundle-install' to 'initializbuildpacks/bundle-install' IMAGE="index.docker.io/${REPOSITORY}" echo "${DOCKERHUB_PASSWORD}" | sudo skopeo login --username "${DOCKERHUB_USERNAME}" --password-stdin index.docker.io sudo skopeo copy "oci-archive:${GITHUB_WORKSPACE}/buildpackage.cnb" "docker://${IMAGE}:${{ steps.event.outputs.tag_full }}" @@ -72,7 +72,7 @@ jobs: id: ${{ github.repository }} version: ${{ steps.event.outputs.tag_full }} address: ${{ steps.push.outputs.image }}@${{ steps.push.outputs.digest }} - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} + token: ${{ secrets.PAT }} failure: name: Alert on Failure @@ -81,7 +81,7 @@ jobs: if: ${{ always() && needs.push.result == 'failure' }} steps: - name: File Failure Alert Issue - uses: paketo-buildpacks/github-config/actions/issue/file@main + uses: initializ-buildpacks/github-config/actions/issue/file@main with: token: ${{ secrets.GITHUB_TOKEN }} repo: ${{ github.repository }} diff --git a/.github/workflows/update-github-config.yml b/.github/workflows/update-github-config.yml index 79164ac..0807300 100644 --- a/.github/workflows/update-github-config.yml +++ b/.github/workflows/update-github-config.yml @@ -16,21 +16,21 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} + token: ${{ secrets.PAT }} - name: Checkout github-config uses: actions/checkout@v3 with: - repository: paketo-buildpacks/github-config + repository: initializ-buildpacks/github-config path: github-config - name: Checkout Branch - uses: paketo-buildpacks/github-config/actions/pull-request/checkout-branch@main + uses: initializ-buildpacks/github-config/actions/pull-request/checkout-branch@main with: branch: automation/github-config/update - name: Run the sync action - uses: paketo-buildpacks/github-config/actions/sync@main + uses: initializ-buildpacks/github-config/actions/sync@main with: workspace: /github/workspace config: /github/workspace/github-config/implementation @@ -40,24 +40,24 @@ jobs: - name: Commit id: commit - uses: paketo-buildpacks/github-config/actions/pull-request/create-commit@main + uses: initializ-buildpacks/github-config/actions/pull-request/create-commit@main with: message: "Updating github-config" pathspec: "." - keyid: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY_ID }} - key: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY }} + keyid: ${{ secrets.INITIALIZ_BOT_GPG_SIGNING_KEY_ID }} + key: ${{ secrets.INITIALIZ_BOT_GPG_SIGNING_KEY }} - name: Push Branch if: ${{ steps.commit.outputs.commit_sha != '' }} - uses: paketo-buildpacks/github-config/actions/pull-request/push-branch@main + uses: initializ-buildpacks/github-config/actions/pull-request/push-branch@main with: branch: automation/github-config/update - name: Open Pull Request if: ${{ steps.commit.outputs.commit_sha != '' }} - uses: paketo-buildpacks/github-config/actions/pull-request/open@main + uses: initializ-buildpacks/github-config/actions/pull-request/open@main with: - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} + token: ${{ secrets.PAT }} title: "Updates github-config" branch: automation/github-config/update @@ -68,7 +68,7 @@ jobs: if: ${{ always() && needs.build.result == 'failure' }} steps: - name: File Failure Alert Issue - uses: paketo-buildpacks/github-config/actions/issue/file@main + uses: initializ-buildpacks/github-config/actions/issue/file@main with: token: ${{ secrets.GITHUB_TOKEN }} repo: ${{ github.repository }}