Skip to content

Commit

Permalink
[BUGS-6560]: test token push
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Wagner committed Jan 30, 2024
1 parent 0dc4f29 commit a446efb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/create-branch-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
MAJOR_ONLY="$(echo $FULL_TAG | cut -d '.' -f 1).x"
echo "BRANCH_NAME=$MAJOR_MINOR" >> $GITHUB_OUTPUT
echo "MAJOR_BRANCH_NAME=$MAJOR_ONLY" >> $GITHUB_OUTPUT
git remote add tokenized_origin ${{ secrets.TOKENIZED_ORIGIN }}
- name: Check if branch exists
id: check_branch
run: |
Expand All @@ -48,14 +49,14 @@ jobs:
if: steps.check_branch.outputs.exists == 'false'
run: |
git checkout -b ${{ steps.tag_name.outputs.BRANCH_NAME }} origin/${{ steps.tag_name.outputs.MAJOR_BRANCH_NAME }}
git push origin ${{ steps.tag_name.outputs.BRANCH_NAME }}
git push tokenized_origin ${{ steps.tag_name.outputs.BRANCH_NAME }}
- name: Merge changes from current default branch
if: steps.check_branch.outputs.exists == 'true'
run: |
git fetch
git checkout -b ${{ steps.tag_name.outputs.BRANCH_NAME }} origin/${{ steps.tag_name.outputs.BRANCH_NAME }}
git merge origin/${{ steps.tag_name.outputs.MAJOR_BRANCH_NAME }}
git push origin HEAD:${{ steps.tag_name.outputs.BRANCH_NAME }}
git push tokenized_origin HEAD:${{ steps.tag_name.outputs.BRANCH_NAME }}
- name: Pushes to drupal.org repository
run: |
cd $WORKSPACE
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ssh-auth-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ jobs:
- name: Test SSH Auth
id: test_auth
run: |
git remote add tokenized_origin ${{ secrets.TOKENIZED_ORIGIN }}
git ls-remote tokenized_origin
git checkout -b BUGS-6560-REMOVE-ME
git push -u tokenized_origin BUGS-6560-REMOVE-ME

0 comments on commit a446efb

Please sign in to comment.