Skip to content

Commit

Permalink
Update branch verification in GitHub workflow
Browse files Browse the repository at this point in the history
The GitHub workflow configuration has been updated to verify that the commit exists in the branch 'origin/3.0.1' instead of 'origin/main'. This is done during the automated package generation process.
  • Loading branch information
sfmskywalker committed Jan 6, 2024
1 parent 6baaa2a commit dc519af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Verify commit exists in origin/main
- name: Verify commit exists in origin/3.0.1
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git branch --remote --contains | grep origin/main
git branch --remote --contains | grep origin/3.0.1
- name: Set VERSION variable
run: |
if [[ "${{ github.ref }}" == refs/tags/* && "${{ github.event_name }}" == "release" && "${{ github.event.action }}" == "published" ]]; then
Expand Down

0 comments on commit dc519af

Please sign in to comment.