Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkout@v3 to v4 and echo #818

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading