<commit_before>#!/bin/bash

set -e -x -v -u -o pipefail

if [[ -z ${branch+x} ]]; then
    echo 'Need to set environment variable "branch"' && exit 1;
fi

if [[ -z ${actor+x} ]]; then
    echo 'Need to set environment variable "actor"' && exit 1;
fi

if [[ -z ${head_ref+x} ]]; then
    echo 'Need to set environment variable "head_ref"' && exit 1;
fi

echo "branch: $branch"
echo "actor: $actor"
echo "head_ref: $head_ref"

FILE=ios/Podfile.lock

git diff

if [[ -z $(git status -s -- "$FILE") ]]; then
    exit 0
fi

# eg, "Bump apple-signin-auth-1.4.0 cocoapods packages"
# add `[dependabot skip]` to the body so Dependabot force-pushes any rebases over our changes, triggering the action again
message="Bump ""${branch//dependabot\/npm_and_yarn\// }"" cocoapods packages

[dependabot skip]"

git add "$FILE"

git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]<EMAIL>'

author="""${actor}"" <${<EMAIL>>"
git commit --author="$author" -m "$message"

git push origin "$head_ref"<commit_msg>use GH_TOKEN when pushing changes<commit_after>#!/bin/bash

set -e -x -v -u -o pipefail

if [[ -z ${branch+x} ]]; then
    echo 'Need to set environment variable "branch"' && exit 1;
fi

if [[ -z ${actor+x} ]]; then
    echo 'Need to set environment variable "actor"' && exit 1;
fi

if [[ -z ${head_ref+x} ]]; then
    echo 'Need to set environment variable "head_ref"' && exit 1;
fi

echo "branch: $branch"
echo "actor: $actor"
echo "head_ref: $head_ref"

FILE=ios/Podfile.lock

git diff

if [[ -z $(git status -s -- "$FILE") ]]; then
    exit 0
fi

# eg, "Bump apple-signin-auth-1.4.0 cocoapods packages"
# add `[dependabot skip]` to the body so Dependabot force-pushes any rebases over our changes, triggering the action again
message="Bump ""${branch//dependabot\/npm_and_yarn\// }"" cocoapods packages

[dependabot skip]"

git add "$FILE"

git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]<EMAIL>'

author="""${actor}"" <${<EMAIL>>"
git commit --author="$author" -m "$message"

git push "https://$GITHUB_TOKEN@github.com/StoDevX/AAO-React-Native.git" "$head_ref"
{'fraction_non_alphanumeric': 0.16956317519962424, 'fraction_numerical': 0.006575857209957727, 'mean_word_length': 4.083532219570405, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4718744', 'n_tokens_mistral': 799, 'n_tokens_neox': 767, 'n_words': 249}