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

trigger auto tag on PR edit and merge #131

Merged
merged 26 commits into from
Aug 12, 2024
Merged

Conversation

mki-c2c
Copy link
Contributor

@mki-c2c mki-c2c commented Aug 8, 2024

JIRA issue

https://jira.camptocamp.com/browse/GSLUX-635

Description

automatic tag generation on PRs

the workflow was tested with the sub PR below:
#132
this created correctly the release https://github.com/Geoportail-Luxembourg/luxembourg-geoportail/releases/tag/GSLUX-635_automate_tag_on_merge_test_merge_CI_8e1839f

the manual workflow (npm run tag) was tested with this release:
https://github.com/Geoportail-Luxembourg/luxembourg-geoportail/releases/tag/GSLUX-635_automate_tag_on_merge_TAG_c1576cd

checks:

  • manual
  • auto

Screenshots

(only if the final render is different)

Copy link
Contributor

github-actions bot commented Aug 8, 2024

@mki-c2c mki-c2c changed the title trigger auto tag on PR edit trigger auto tag on PR edit and merge Aug 8, 2024
@mki-c2c mki-c2c changed the title trigger auto tag on PR edit and merge trigger auto tag on PR edit and merge (into main) Aug 8, 2024
@mki-c2c mki-c2c changed the title trigger auto tag on PR edit and merge (into main) trigger auto tag on PR edit and merge (into main) ongoing Aug 8, 2024
@mki-c2c mki-c2c changed the title trigger auto tag on PR edit and merge (into main) ongoing trigger auto tag on PR edit and merge (into main) Aug 8, 2024
@mki-c2c mki-c2c changed the title trigger auto tag on PR edit and merge (into main) trigger auto tag on PR edit and merge (into main)1 Aug 8, 2024
@mki-c2c mki-c2c changed the title trigger auto tag on PR edit and merge (into main)1 trigger auto tag on PR edit and merge (into main) Aug 8, 2024
@mki-c2c mki-c2c changed the title trigger auto tag on PR edit and merge (into main) trigger auto tag on PR edit and merge (into main)1 Aug 8, 2024
@mki-c2c mki-c2c changed the title trigger auto tag on PR edit and merge (into main)1 trigger auto tag on PR edit and merge Aug 8, 2024
@mki-c2c mki-c2c requested review from tkohr and AlitaBernachot August 8, 2024 13:42
Copy link
Contributor

@tkohr tkohr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this new feature in the CI and the doc @mki-c2c!

steps:
- uses: actions/checkout@v3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also be v4 as above, I guess.

### Automatic tag in CI

On merge of a PR on main branch the CI will create an automatic tag of type
<branch_name>\_CI\_<short_commit>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the difference between manual "dev" tags created on a branch and tags automatically created on main is the "TAG" vs "CI" part if I see right. Just wondering if other terms would be more explicit to identify the difference without becoming too long. WDYT of "DEV_TAG" instead of "TAG"?

Copy link
Contributor Author

@mki-c2c mki-c2c Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just _DEV_ instead of _TAG_ ??

README.md Outdated

#### cleaning usused tags

there is not any CI automation yet. However, the naming conventio that dev tags shall start with the branch name, makes cleaning them much easier.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
there is not any CI automation yet. However, the naming conventio that dev tags shall start with the branch name, makes cleaning them much easier.
There is not any CI automation yet. However, the naming convention that dev tags shall start with the branch name, makes cleaning them much easier.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

mki-c2c and others added 3 commits August 9, 2024 10:35
* output all test variables

* fix workflow

* fix workflow

* pretty print objects

* fix echo quoting

* fix quotes

* test tags

* clean workflow

* create auto tag on branch pushes instead of PR

* debug bash

* test mutli cmd run

* do use env variable

* cleanup

* verbose output

* fix echo

* fix bash

* another bash check

* unecho

* echo variants

* more echos

* checkout

* check git version

* deepen fetch to find parents

* cleanup

* set correct tag names and job activation conditions
@mki-c2c mki-c2c merged commit 34816b0 into main Aug 12, 2024
2 checks passed
@tkohr tkohr deleted the GSLUX-635_automate_tag_on_merge branch December 11, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants