From 6fa7166a89e8818de789f7b35ac4a90ca14a4cfe Mon Sep 17 00:00:00 2001 From: initializ-bot Date: Mon, 6 May 2024 10:30:01 +0000 Subject: [PATCH] Updating github-config --- .github/workflows/push-image.yml | 10 +++------- .github/workflows/update-builder-toml.yml | 6 +++--- .github/workflows/update-github-config.yml | 6 +++--- scripts/.util/tools.json | 2 +- scripts/.util/tools.sh | 2 +- 5 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index abaaa3b..70f50c1 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -45,11 +45,7 @@ jobs: INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME }} INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD }} GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }} - run: | - DOCKERHUB_ORG="${GITHUB_REPOSITORY_OWNER/-/}" # translates 'initializ-buildpacks' to 'initializbuildpacks' - # Strip off the Github org prefix from repo name - # initializ-buildpacks/builder-with-some-name --> builder-with-some-name - registry_repo=$(echo "${{ github.repository }}" | sed 's/^.*\///') + DOCKERHUB_ORG: "initializbuildpacks" echo "${INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD}" | docker login --username "${INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME}" --password-stdin docker tag builder "${DOCKERHUB_ORG}/${registry_repo}:latest" @@ -65,7 +61,7 @@ jobs: if: ${{ always() && needs.push.result == 'failure' }} steps: - name: File Failure Alert Issue - uses: initializ-buildpacks/github-config/actions/issue/file@main + uses: INITIALIZ-buildpacks/github-config/actions/issue/file@main with: token: ${{ secrets.GITHUB_TOKEN }} repo: ${{ github.repository }} @@ -75,4 +71,4 @@ jobs: issue_body: | Push Image workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}). comment_body: | - Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} + Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} \ No newline at end of file diff --git a/.github/workflows/update-builder-toml.yml b/.github/workflows/update-builder-toml.yml index cc66331..88c48a3 100644 --- a/.github/workflows/update-builder-toml.yml +++ b/.github/workflows/update-builder-toml.yml @@ -18,7 +18,7 @@ jobs: - name: Checkout branch uses: initializ-buildpacks/github-config/actions/pull-request/checkout-branch@main with: - branch: "automation/builder-toml" + branch: "automations/builder-toml" - name: Update builder.toml uses: initializ-buildpacks/github-config/actions/builder/update@main @@ -38,7 +38,7 @@ jobs: if: ${{ steps.commit.outputs.commit_sha != '' }} uses: initializ-buildpacks/github-config/actions/pull-request/push-branch@main with: - branch: "automation/builder-toml" + branch: "automations/builder-toml" - name: Open Pull Request if: ${{ steps.commit.outputs.commit_sha != '' }} @@ -46,7 +46,7 @@ jobs: with: token: ${{ secrets.PAT }} title: "Updating builder.toml" - branch: "automation/builder-toml" + branch: "automations/builder-toml" failure: name: Alert on Failure diff --git a/.github/workflows/update-github-config.yml b/.github/workflows/update-github-config.yml index 9990deb..f2d64af 100644 --- a/.github/workflows/update-github-config.yml +++ b/.github/workflows/update-github-config.yml @@ -27,7 +27,7 @@ jobs: - name: Checkout Branch uses: initializ-buildpacks/github-config/actions/pull-request/checkout-branch@main with: - branch: automation/github-config/update + branch: automations/github-config/update - name: Run the sync action uses: initializ-buildpacks/github-config/actions/sync@main @@ -51,7 +51,7 @@ jobs: if: ${{ steps.commit.outputs.commit_sha != '' }} uses: initializ-buildpacks/github-config/actions/pull-request/push-branch@main with: - branch: automation/github-config/update + branch: automations/github-config/update - name: Open Pull Request if: ${{ steps.commit.outputs.commit_sha != '' }} @@ -59,7 +59,7 @@ jobs: with: token: ${{ secrets.PAT }} title: "Updates github-config" - branch: automation/github-config/update + branch: automations/github-config/update failure: name: Alert on Failure diff --git a/scripts/.util/tools.json b/scripts/.util/tools.json index 36142e8..ffaf491 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,3 +1,3 @@ { "pack": "v0.33.2" -} +} \ No newline at end of file diff --git a/scripts/.util/tools.sh b/scripts/.util/tools.sh index da61dbd..5b0720c 100644 --- a/scripts/.util/tools.sh +++ b/scripts/.util/tools.sh @@ -183,4 +183,4 @@ function util::tools::tests::checkfocus() { util::print::success "** GO Test Succeeded **" 197 fi rm "${testout}" -} +} \ No newline at end of file