in Technology by
How to use release management for your custom Github actions?

1 Answer

0 votes
by

The creators of a community action have the option to use tags, branches, or SHA values to manage releases of the action. Similar to any dependency, you should indicate the version of the action you'd like to use based on your comfort with automatically accepting updates to the action.

You will designate the version of the action in your workflow file. Check the action's documentation for information on their approach to release management, and to see which tag, branch, or SHA value to use.

Using tags

Tags are useful for letting you decide when to switch between major and minor versions, but these are more ephemeral and can be moved or deleted by the maintainer. This example demonstrates how to target an action that's been tagged as v1.0.1:

steps:
  - uses: actions/[email protected]

Using SHAs

If you need more reliable versioning, you should use the SHA value associated with the version of the action. SHAs are immutable and therefore more reliable than tags or branches. However, this approach means you will not automatically receive updates for an action, including important bug fixes and security updates. You must use a commit's full SHA value, and not an abbreviated value. When selecting a SHA, you should verify it is from the action's repository and not a repository fork. This example targets an action's SHA:

steps:
  - uses: actions/javascript-action@a824008085750b8e136effc585c3cd6082bd575f

Using branches

Specifying a target branch for the action means it will always run the version currently on that branch. This approach can create problems if an update to the branch includes breaking changes. This example targets a branch named @main:

steps:
  - uses: actions/javascript-action@main

Related questions

0 votes
    Explain about the GitHub Actions?...
asked Jun 17, 2023 in Technology by JackTerrance
0 votes
    Example of an example GitHub action workflow?...
asked Jun 17, 2023 in Technology by JackTerrance
0 votes
    Describe Release Train Engineer 2 actions...
asked Nov 30, 2020 in Technology by Editorial Staff
0 votes
    I've had several occasions in my selenium tests where I decided to use Selenium's click_and_hold() (source ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
+1 vote
    Is it possible to create a custom domain name, or use your organisation's domain name such as eduforum.in, in Azure Active Directory?...
asked Oct 20, 2020 in Technology by JackTerrance
0 votes
    What is disaster management? What actions does it include? Select the correct answer from above options ... proposed by,electromagnetic theory engineering physics,Science nptel...
asked Nov 7, 2021 in Education by JackTerrance
0 votes
    How do you push a file from your local system to the GitHub repository using Git?...
asked Oct 4, 2020 in Technology by Editorial Staff
0 votes
    What is the git command that downloads any repository from GitHub to your computer?...
asked Oct 4, 2020 in Technology by Editorial Staff
0 votes
    How can we referencing a container on Docker Hub?...
asked Jun 17, 2023 in Technology by JackTerrance
0 votes
    State true or false. When you have finished your work in the IMG or ABAP Workbench, or have reached a certain stage, you can release the request. A. True B. False...
asked Feb 20, 2023 in Technology by JackTerrance
0 votes
    What happens if you add your just created object to a mutable array, and you release your object?...
asked Nov 10, 2020 in Technology by JackTerrance
0 votes
    How will you register individual your participation in solid waste management? Select the correct answer ... proposed by,electromagnetic theory engineering physics,Science nptel...
asked Nov 7, 2021 in Education by JackTerrance
+1 vote
    Which of the following is the older service management model, where cloud services contain your cloud resources?...
asked Oct 20, 2020 in Technology by JackTerrance
+1 vote
    Which of the following is the older service management model, where cloud services contain your cloud resources?...
asked Oct 20, 2020 in Technology by JackTerrance
0 votes
    How to use filters to target specific branches or tags for push events in GitHub Actions?...
asked Jun 19, 2023 in Technology by JackTerrance
...