Skip to content

Commit

Permalink
rearrange code
Browse files Browse the repository at this point in the history
  • Loading branch information
larox11 authored and greenbonebot committed Aug 8, 2024
1 parent 67add63 commit 0c35f01
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions update-header/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ runs:
mail: ${{ inputs.github-user-mail }}
token: ${{ inputs.github-user-token }}
repository: ${{ github.repository }}
- name: Store Branch name
shell: bash
id: update
- name: Checkout new branch
run: |
echo "HEAD=devops/update-header-$(date +"%Y%m%d_%s")" >> $GITHUB_OUTPUT
BRANCH_NAME="devops/update-header-$(date +'%Y%m%d_%s')"
echo "HEAD=$BRANCH_NAME" >> $GITHUB_OUTPUT
git checkout -b $BRANCH_NAME
shell: bash
- name: Run commands to update headers
run: |
git checkout -b ${{ steps.update.outputs.HEAD }}
pontos-update-header -d ${{ inputs.directories }}
shell: bash
- name: Run git commands for PR
- name: Commit changes and open a pull request
run: |
if ! git diff-index --quiet HEAD --; then
git add -u
Expand Down

0 comments on commit 0c35f01

Please sign in to comment.