Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove vars step #11

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 1 addition & 24 deletions .github/workflows/.merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,6 @@ concurrency:
cancel-in-progress: true

jobs:
# Find initial PR number (for merge queues)
vars:
name: Build and Deploy Vars
outputs:
tag: ${{ steps.deploys.outputs.tag }}
runs-on: ubuntu-22.04
steps:
- name: Set Variables
id: deploys
run: |
# Get PR number (different process for merge queue)
if [ ${{ github.event_name }} == 'pull_request' ]
then
tag=${{ github.event.number }}
else
tag=$(echo ${{ github.event.merge_group.head_ref }} | grep -Eo "queue/main/pr-[0-9]+" | cut -d '-' -f2)
fi

echo "Summary ---"
echo -e "\tTag (PR no): ${tag}"
echo "tag=${tag}" >> $GITHUB_OUTPUT

# https://github.com/bcgov-nr/action-builder-ghcr
builds:
name: Builds
Expand All @@ -49,8 +27,7 @@ jobs:
with:
keep_versions: 50
package: ${{ matrix.package }}
tag: ${{ needs.vars.outputs.tag }}
tag_fallback: latest
tag: latest
triggers: ('${{ matrix.package }}/')


Expand Down