Skip to content

Commit

Permalink
Merge pull request #818 from mlrun/nashpaz123-patch-1
Browse files Browse the repository at this point in the history
checkout@v3 to v4 and echo
  • Loading branch information
nashpaz123 authored Jun 20, 2024
2 parents b409f03 + 6c460d6 commit cf1cc8b
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/test-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
id: myref

- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: set-matrix
# This is very hacky, but it goes like that:
# 1) Associate base_ref with origin/base_ref since actions/checkout doesn't do it, if we don't do that we won't be able to check the actual diff
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
steps:
# Source
- name: Checkout current repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: functions
# Install python 3.9
Expand Down Expand Up @@ -106,11 +106,11 @@ jobs:
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
id: branch
- name: Checkout current repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: functions
- name: Checkout Marketplace
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: mlrun/marketplace
path: marketplace
Expand All @@ -134,7 +134,7 @@ jobs:
python functions/functions.py build-marketplace -s functions -m marketplace -c $CHANNEL -v -f
- name: Publish marketplace release
env:
GITHUB_TOKEN: ${{ secrets.MARKETPLACE_ACCESS_TOKEN_V4 }}
GITHUB_TOKEN: ${{ secrets.MARKETPLACE_ACCESS_TOKEN_V3 }}
USERNAME: iguazio-cicd
USEREMAIL: [email protected]
REPO_PATH: marketplace
Expand All @@ -154,26 +154,30 @@ jobs:
exit 1;
};
git config --local user.name $USERNAME
git config --global user.email $USEREMAIL
git config --global user.name $USERNAME
git config --local user.email $USEREMAIL
git branch --set-upstream-to origin/master
git remote -v
echo "Checking out [$BRANCH_NAME]..."
echo "1. Checking out [$BRANCH_NAME]..."
git checkout -b $BRANCH_NAME
echo "Checking out [$BASE_BRANCH]..."
echo "2. Checking out [$BASE_BRANCH]..."
git checkout $BASE_BRANCH
git pull
echo "Checking out [$BRANCH_NAME]..."
echo "3. Checking out [$BRANCH_NAME]..."
git checkout $BRANCH_NAME
echo "3a. merging"
git merge $BASE_BRANCH
echo "3b. status"
git status
git status --ignored
find . -type f | xargs ls -artl
echo "3b. add"
git add --all
git status
git status --ignored
echo "Commiting changes..."
echo "4. Commiting changes..."
echo "4a. git rev-parse"
git rev-parse --show-toplevel
echo "4b. git commit"
git commit -a -m "Automatically generated by github-worflow[bot] for commit: $COMMIT_SHA"
git status
git status --ignored
Expand Down

0 comments on commit cf1cc8b

Please sign in to comment.