Skip to content

Commit

Permalink
Changed to github.sha
Browse files Browse the repository at this point in the history
  • Loading branch information
sarvekshayr committed Oct 16, 2024
1 parent d77580f commit 3ab2148
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ jobs:
run: |
git config --global user.name 'Github Actions'
git config --global user.email '[email protected]'
git checkout -b config-doc-update-from-$(git rev-parse --short $GITHUB_SHA)
git checkout -b config-doc-update-from-$(git rev-parse --short ${{ github.sha }})
git add hadoop-hdds/docs/content/tools/Configurations.md
git commit -m "[Auto] Update Configurations.md from $GITHUB_SHA"
git push origin HEAD:config-doc-update-from-$(git rev-parse --short $GITHUB_SHA)
git commit -m "[Auto] Update Configurations.md from ${{ github.sha }}"
git push origin HEAD:config-doc-update-from-$(git rev-parse --short ${{ github.sha }})
- name: Create Pull Request in apache/ozone
if: env.hashes_differ == 'true'
env:
Expand All @@ -221,15 +221,15 @@ jobs:
BRANCH_NAME: ${{ github.ref_name }}
run: |
echo "## What changes were proposed in this pull request?" > pr_body.txt
echo "This is an automated pull request triggered by the [$WORKFLOW_NAME](https://github.com/apache/ozone/actions/runs/$WORKFLOW_RUN_ID) workflow run from [$BRANCH_NAME](https://github.com/apache/ozone/tree/$BRANCH_NAME). Please delete the [config-doc-update-from-$(git rev-parse --short $GITHUB_SHA)](https://github.com/apache/ozone/tree/config-doc-update-from-$(git rev-parse --short $GITHUB_SHA)) branch after this PR is merged or closed." >> pr_body.txt
echo "This is an automated pull request triggered by the [$WORKFLOW_NAME](https://github.com/apache/ozone/actions/runs/$WORKFLOW_RUN_ID) workflow run from [$BRANCH_NAME](https://github.com/apache/ozone/tree/$BRANCH_NAME). Please delete the [config-doc-update-from-$(git rev-parse --short ${{ github.sha }})](https://github.com/apache/ozone/tree/config-doc-update-from-$(git rev-parse --short ${{ github.sha }})) branch after this PR is merged or closed." >> pr_body.txt
echo "" >> pr_body.txt
echo "## What is the link to the Apache JIRA?" >> pr_body.txt
# echo "[$JIRA_ID](https://issues.apache.org/jira/browse/$JIRA_ID)" >> pr_body.txt
echo "" >> pr_body.txt
echo "## How was this patch tested?" >> pr_body.txt
echo "Reviewers should manually verify the correctness of this change." >> pr_body.txt

gh pr create --base master --head config-doc-update-from-$(git rev-parse --short $GITHUB_SHA) \
gh pr create --base master --head config-doc-update-from-$(git rev-parse --short ${{ github.sha }}) \
--title ". Update Configurations.md page with changes from " \
--body-file pr_body.txt
- name: Checkout ozone-site repository
Expand All @@ -255,8 +255,8 @@ jobs:
git config --global user.name 'Github Actions'
git config --global user.email '[email protected]'
git add "$TARGET_DIR/99-appendix.md"
git commit -m "[Auto] Update configurations.md page from ozone $(git rev-parse --short $GITHUB_SHA)"
git push origin HEAD:config-doc-update-from-$(git rev-parse --short $GITHUB_SHA)
git commit -m "[Auto] Update configurations.md page from ozone $(git rev-parse --short ${{ github.sha }})"
git push origin HEAD:config-doc-update-from-$(git rev-parse --short ${{ github.sha }})
- name: Create Pull Request in apache/ozone-site
if: env.hashes_differ == 'true'
env:
Expand All @@ -268,15 +268,15 @@ jobs:
run: |
cd ozone-site
echo "## What changes were proposed in this pull request?" > pr_body1.txt
echo "This is an automated pull request triggered by the [$WORKFLOW_NAME](https://github.com/apache/ozone/actions/runs/$WORKFLOW_RUN_ID) workflow run from [$BRANCH_NAME](https://github.com/apache/ozone/tree/$BRANCH_NAME). Please delete the [config-doc-update-from-$(git rev-parse --short $GITHUB_SHA)](https://github.com/apache/ozone/tree/config-doc-update-from-$(git rev-parse --short $GITHUB_SHA)) branch after this PR is merged or closed." >> pr_body1.txt
echo "This is an automated pull request triggered by the [$WORKFLOW_NAME](https://github.com/apache/ozone/actions/runs/$WORKFLOW_RUN_ID) workflow run from [$BRANCH_NAME](https://github.com/apache/ozone/tree/$BRANCH_NAME). Please delete the [config-doc-update-from-$(git rev-parse --short ${{ github.sha }})](https://github.com/apache/ozone/tree/config-doc-update-from-$(git rev-parse --short ${{ github.sha }})) branch after this PR is merged or closed." >> pr_body1.txt
echo "" >> pr_body1.txt
echo "## What is the link to the Apache JIRA?" >> pr_body1.txt
# echo "[$JIRA_ID](https://issues.apache.org/jira/browse/$JIRA_ID)" >> pr_body1.txt
echo "" >> pr_body1.txt
echo "## How was this patch tested?" >> pr_body1.txt
echo "Reviewers should manually verify the correctness of this change." >> pr_body1.txt

gh pr create --base HDDS-9225-website-v2 --head config-doc-update-from-$(git rev-parse --short $GITHUB_SHA) \
gh pr create --base HDDS-9225-website-v2 --head config-doc-update-from-$(git rev-parse --short ${{ github.sha }}) \
--title ". Update Configurations.md page with changes from" \
--body-file pr_body1.txt
compile:
Expand Down

0 comments on commit 3ab2148

Please sign in to comment.