From 1621087e2ee0a57a0f3018ba3f74c61e1d00e76a Mon Sep 17 00:00:00 2001 From: Venkata Krishna Rohit Sakala Date: Tue, 1 Aug 2023 09:02:34 -0700 Subject: [PATCH] Debug --- .github/workflows/regsync-config.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/regsync-config.yaml b/.github/workflows/regsync-config.yaml index 7e773370b73..53ea4c7e696 100644 --- a/.github/workflows/regsync-config.yaml +++ b/.github/workflows/regsync-config.yaml @@ -10,7 +10,7 @@ on: jobs: build: - if: github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'release-v2.7' + if: github.event.pull_request.base.ref == 'release-v2.7' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -23,12 +23,30 @@ jobs: export CHARTS_BUILD_SCRIPT_VERSION=v0.4.2 make pull-scripts make regsync + + - name: Commit + run: | + git add regsync.yaml + git config --global user.name "Github Action RegSync" + git config --global user.email "github@action.com" + git commit -m "Updating regsync.yaml" + git branch + git status + echo $BRANCH_NAME + env: + GH_TOKEN: ${{ github.token }} + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + - name: Install Regsync run: | curl --silent --fail --location --output regsync https://github.com/regclient/regclient/releases/download/v0.4.8/regsync-linux-amd64 chmod +x regsync + + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + - name: Sync Images to Registry run: | head regsync.yaml